plotly / plotly/plotly.py

Legend group title are shifted to the right when written in LaTeX

Open
#5,115 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

Hi,
When using legend groups, if the title text is written in LaTeX, it is shifted to the right. However, I would expect that having a title text in latex should not change its alignment.

To reproduce, please have a look at this PyCafe example. I confirm this problem exists outside of dash.

I am using plotly 6.0.1.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked PyCafe reproduction and compare legend-group titles rendered as plain text versus LaTeX in Plotly 6.0.1. Trace the legend-group title rendering entry point and verify that LaTeX does not change the title's horizontal alignment; done when both forms align consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex, python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.