plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

[BUG] go.Heatmap y axis labels misaligned when using mathjax

Open geislpxs opened this issue 4 years ago • 2 comments

Good evening, I'm not sure if this is a bug or somehow wanted behavior.

dash 2.5 dash-core-components 2.0.0 dash-html-components 2.0.0 dash-renderer
dash-table 5.0.0

- Browser [chrome]
- Version [102.0.5005.63]

Describe the bug

When I use strings for y in go.Heatmap with leading and trailing Dollar-signs, the y axis labels lose the alignment (neither left, nor center, nor right. Somehow random). When I remove the Dollar-signs, everything is fine.

Expected behavior

Consistent alignment

Screenshots

image

geislpxs avatar Jun 12 '22 05:06 geislpxs

Thanks @geislpxs - we'll investigate, but in the meantime I'll mention if you just need subscripts & superscripts you can do that without MathJax, just eg "T<sub>Lys1Air</sub>mean". The allowed tags, that are supported across most elements of a graph, are listed in eg https://plotly.com/python/reference/layout/annotations/#layout-annotations-items-annotation-text. They look like HTML but we in fact reinterpret them into SVG while drawing the graph.

alexcjohnson avatar Jun 13 '22 20:06 alexcjohnson

Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson

gvwilson avatar Jul 03 '24 17:07 gvwilson