You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@benvarkey - You can combine LaTeX with plain text by using the Text keyword, i.e.: '$\\beta_{1c} = 25 \\pm 11 \\text{ km s}^{-1}$'. See more examples here: https://plot.ly/python/LaTeX/
For now, re-arranging the $ is out of scope for our matplotlib converter.
I have the same issue in offline Jupyter notebooks. When I export the plot to the online web-ui it renders the latex label correctly.
Reacted by cjprybol, Antoine Gautier, Stephanie, Martin Langer, Ruslan Israfilov, Andreas Hübner, carlyle.ruiters, Yiheng Li, Paweł Biernat, Sebastian Schmidl and 2 more
Thanks, but unfortunately, this didn't fix it for me :/ I just want to put an overbar on some text labels, not sue why it has to be so complicated. HTML works for things like subscripts, Its frustrating I can't use it for this.
Done in #1243 and will be released in version 3.4.0. LaTeX support requires no API changes for iplot or FigureWidget support. An additional include_mathjax argument has been added to plotly.offline.plot to specify how MathJax should be included in the resulting html file/div.
Reacted by Martin Langer, Sebastian Schmidl, Dmitri Smirnov, James Nichols and Xin Zhang
Reacted by Martin Langer, Adam Plowman, James Nichols and Atharva Arya
Activity
chriddyp commentedon Aug 13, 2014
thanks for reporting! looks like we'll have to move around our latex
$around a bitbenvarkey commentedon Dec 22, 2015
Any ETA on this? Thanks.
chriddyp commentedon Dec 22, 2015
@benvarkey - You can combine
LaTeXwith plain text by using theTextkeyword, i.e.:'$\\beta_{1c} = 25 \\pm 11 \\text{ km s}^{-1}$'. See more examples here: https://plot.ly/python/LaTeX/For now, re-arranging the
$is out of scope for our matplotlib converter.benvarkey commentedon Dec 22, 2015
It doesn't render with
plotly.offline.iplot(...)(shows the raw text), but it renders correctly if exported to plot.lybenvarkey commentedon Dec 23, 2015
Actually, I don't get the rendered text even with pure latex code:

But, when I export to plot.ly, I get this:

Any ideas? Thanks.
stephf0716 commentedon Jan 11, 2016
I am experiencing the same issue and can confirm this similarly occurs when using plotly offline with MATLAB.
rethore commentedon Feb 11, 2016
I have the same issue in offline Jupyter notebooks. When I export the plot to the online web-ui it renders the latex label correctly.
nvenayak commentedon Jun 7, 2016
Is there any plan to fix/implement this? LaTeX rendering is a fairly important feature when generating scientific plots.
Kully commentedon Aug 10, 2016
Hey guys, someone on the Front support is wondering about an estimation for when this feature will be fixed. Any ideas?
MaryAnnEbeling commentedon Jan 31, 2017
I would also love using Latex in plotly offline mode!
flo-compbio commentedon Feb 2, 2017
Just wanted to point out to people here that inserting a JavaScript snippet into the notebook fixed the issue for me. Thanks @jjaraalm !!!
guenp commentedon Feb 2, 2017
@chriddyp maybe you guys could implement this patch? ❤️
chriddyp commentedon Feb 2, 2017
Opening a PR here to try out some different solutions: #683
iliyang commentedon Jun 16, 2017
Same problem here - LaTeX math labels don't render properly in offline mode (in a Jupyter notebook). Hope a fix is coming soon, thanks!
ktran9891 commentedon Jun 30, 2017
Adding my voice, as well: I would love for this to be fixed.
KseniiaPalin commentedon Sep 18, 2017
Same here :)
+1 for fix request
June-Skeeter commentedon Dec 13, 2017
I'm having the same issue as well, its pretty frustrating, and its making me not want to use plotly any more.
SebastianSchmidl commentedon Dec 13, 2017
@Wes-Skeeter have you tried using the fix mentioned by flo-compbio, see here
this fixed the problem for me, but it's just a workaround and I would also love to have a fix in plotly
June-Skeeter commentedon Dec 13, 2017
Thanks, but unfortunately, this didn't fix it for me :/ I just want to put an overbar on some text labels, not sue why it has to be so complicated. HTML works for things like subscripts, Its frustrating I can't use it for this.
SebastianSchmidl commentedon Dec 14, 2017
I'm using plotly in offline mode and HTML is working just fine for me, MWE:
produces:

jdieg0 commentedon Apr 27, 2018
What a pity! LaTeX-Code is still not interpreted in offline plots. So I'll have to go back to Matplotlib until this is fixed.
jonmmease commentedon Sep 21, 2018
The offline latex/MathJax issues are going to be resolved by plotly/plotly.js#2994 and #1169. Follow along if you're interested!
jonmmease commentedon Oct 30, 2018
Done in #1243 and will be released in version 3.4.0. LaTeX support requires no API changes for
iplotorFigureWidgetsupport. An additionalinclude_mathjaxargument has been added toplotly.offline.plotto specify how MathJax should be included in the resulting html file/div.