[BUG]: Subplot LaTeX titles misaligned
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python
- Domain
- data-visualization
Research direction
Run the provided Python reproduction with plotly 6.8.0, starting at make_subplots and the subplot-title positioning path. Compare interactive rendering with fig.write_image(img.png); done means the LaTeX titles are vertically aligned and centered, with the default title position slightly higher if that request is included.
Written by the indexing model from the issue text.
Description
Description
make_subplots produces plots with misaligned LaTeX titles:
Nor do they seem to be properly centered.
Saving the image with fig.write_image(img.png) does not render it differently.
If you remove the letter "p" from the title on the right or add one on the left, that seems to "solve" the vertical alignment problem.
Steps to reproduce
from plotly.subplots import make_subplots
fig = make_subplots(rows=1, cols=2,
subplot_titles=(r'$\Large\text{Investment Rate}$',r"$\Large\text{Experts' Capital Share}$"))
fig.add_scatter(x=[], y=[], row=1, col=1)
fig.add_scatter(x=[], y=[], row=1, col=2)
fig.update_layout(#template="plotly_white+presentation",
height=600, width=1200)
fig
Version: 6.8.0
I also think the default positioning of the title should be a tiny bit higher.
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 13h 41m
- Merged PRs (30d)
- 21
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from plotly/plotly.py
-
P3 size: 1 task
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
P3 size: 1 task
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug P1
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
feature P3
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
feature P3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
All issues in plotly/plotly.py
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
canonical/paas-charm#368 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
StevenBlack/hosts#3256 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
qualcomm/qai-appbuilder#275 ·