LaTeX/MathJax broken using Firefox v82.0
See original GitHub issueHi Plotly team, I just recently updated my firefox browser to version 84.0.1 and have been using plotly’s (v4.14.1) subplots in Jupyter notebook (v6.0.3) with Python (v3.7.6) for a couple months now without issue. I noticed that with this new version of the browser when I call something like:
from plotly.subplots import make_subplots
fig = make_subplots(1, 3, subplot_titles=[1, 2, 3])
fig['layout'].update(width=1200, height=1200)
fig.add_trace(go.Scatter(x=[1 , 2 , 3],
y=[1 , 2 , 3],
name='$123$',
),
row=1,
col=1
)
fig.add_trace(go.Scatter(x=[1 , 2 , 3],
y=[1 , 2 , 3],
),
row=1,
col=2
)
fig.show()
The figures do not render properly and when I try to toggle the traces by clicking on the legend, all of the plots shrink and are illegible. This issue seems to be caused whenever I add Latex to the legend str using the name argument in go.Scatter while ALSO using the update command to manually set the width and height of the figure. If I do only one or the other, the behavior seems to go back to normal. It also seems to be unique to Firefox, as I did not have an issue with Chrome when I tested this with the same environment. Hoping this is enough information to create a reproducible example and solve this issue.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:16 (12 by maintainers)
Top GitHub Comments
Thanks @MRScheid - confirmed with FF84 on my Mac, at for example https://plotly.github.io/LaTeX-basics/
It looks like the LaTeX renders, but has some sort of bounding box error.
Is there any known workaround, or is LaTeX in Plotly just plain broken for all recent Firefox versions?