-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
problem with colorbar LaTeX title rendering #2231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Update: I have found a workaround but not a solution. This is definitely a bug as far as I cant tell. One option, if you do not require Greek alphabet, is to simply use HTML code, simply using italics, superscripts or subscripts. If one wants to use Greek letters, HTML entities don't work, but a few decimal and hexadecimal codes do work. This issue should be addressed, especially if Plotly is to be used for publishing purposes. Otherwise, Matplotlib is the alternative that does work. |
Any updates? |
At the risk of repeating the previous poster: Are there any updates on this or any way to work around the issue in another way? I use LaTeX extensively and it would require a complete rewrite to switch |
No updates or workarounds, sorry, this is just currently unsupported and as far as I know no one is working on this issue. The fix would need to be implemented in Plotly.js: plotly/plotly.js#4605 |
Thanks for the reply. It really is unfortunate. I wish I had the skills to fix this myself |
Not an ideal fix, but converting the TeX to unicode with https://github.com/phfaist/pylatexenc worked for me. |
I am trying to implement a LaTeX math title for my colorbar and plotly is having some trouble rendering it. I am using Python 2.7, Plotly 4.5.2. My code:
Which produces the output:
As you can see, the LaTeX title seems to be rotated 90 deg, and ignoring
side='top'
. I have tried to increase the width of the colorbar and increase the plot's margins to no avail. Is there a workaround or solution for this problem?The text was updated successfully, but these errors were encountered: