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
It's really unfortunate that 3d plot does not support latex renderig. For the mean time, is it possible to use unicode/html entity in place of latex like instead of giving $\rho$, can't we just give ρ or ρ
I would like to have this feature and I can contribute so it is done. Is it very hard to do? What are the problems encountered?
If anyone has looked at this, can you give me an overview or point me to the place to look at so I can check if I am able to help?
A community PR for this feature would certainly be welcome, but our experience is deeper features like this are difficult to complete without the Plotly maintainers leading the effort.
What Sponsorship includes:
Completion of this feature to the Sponsor's satisfaction, in a manner coherent with the rest of the Plotly.js library and API
Tests for this feature
Long-term support (continued support of this feature in the latest version of Plotly.js)
For those still interested in this issue, the crux is that 3D plots currently draw everything in WebGL, including the text. Up in #608 (comment), @archmoj proposed one way to solve this, by rasterizing the LaTeX. Another way (which is more akin to what we did with 2D WebGL plots) would be to refactor this to draw the text (ideally both titles and tick labels) in SVG instead of in WebGL. That would make it easy to support LaTeX the same way we do the rest of SVG text, and would make all of these labels higher-quality overall, particularly in vector output like PDF. Unfortunately it's a fairly major refactor, and I'm not quite sure what would be needed to pull the coordinates for all of these text items out of the stack.gl modules that handle 3D subplots and return them to our SVG drawing code.
Reacted by FixelAlgorithms, Nathan Morrow and vvch
Activity
etpinard commentedon Jun 6, 2016
A known limitation of using WebGL for 3D plots.
Won't be fixed any time soon.
parthi2929 commentedon Oct 25, 2018
This is still not fixed? It has been 2 years. Kindly plan to support.
yaozhewei commentedon Jan 23, 2019
Has there been any updates on this feature?
Koushikphy commentedon Jun 25, 2019
It's really unfortunate that 3d plot does not support latex renderig. For the mean time, is it possible to use unicode/html entity in place of latex like instead of giving
$\rho$, can't we just giveρorρKoushikphy commentedon Jun 26, 2019
Well it works if directly putting
rhofrom copy pasting it somewhere like ρCatarina-Alves commentedon Mar 19, 2020
I would like to have this feature and I can contribute so it is done. Is it very hard to do? What are the problems encountered?
If anyone has looked at this, can you give me an overview or point me to the place to look at so I can check if I am able to help?
archmoj commentedon Mar 19, 2020
@Catarina-Alves thanks very much!
For rendering text using webgl @mikolalysenko's vectorize-text is called .
I think if one converts Latex to pixel data, then it could be used here
https://github.com/mikolalysenko/vectorize-text/blob/18c472de123e7ea7ea25ec80b7ac15b2ea0540c4/lib/vtext.js#L310.
But I may be wrong.
cc: @antoinerg @alexcjohnson
Catarina-Alves commentedon Mar 19, 2020
Thank you @archmoj. I will have a look at your resources and the code and see if it is within my knowledge to make the necessary changes.
christian-nils commentedon Mar 31, 2020
@Catarina-Alves, any chances you would have come up with a solution?
Catarina-Alves commentedon Apr 19, 2020
I have looked through this but I do not have the right skills to solve this issue. I am sorry.
jackparmer commentedon Sep 10, 2020
This issue has been tagged with
NEEDS SPON$ORA community PR for this feature would certainly be welcome, but our experience is deeper features like this are difficult to complete without the Plotly maintainers leading the effort.
What Sponsorship includes:
Please include the link to this issue when contacting us to discuss.
alexcjohnson commentedon Feb 10, 2024
For those still interested in this issue, the crux is that 3D plots currently draw everything in WebGL, including the text. Up in #608 (comment), @archmoj proposed one way to solve this, by rasterizing the LaTeX. Another way (which is more akin to what we did with 2D WebGL plots) would be to refactor this to draw the text (ideally both titles and tick labels) in SVG instead of in WebGL. That would make it easy to support LaTeX the same way we do the rest of SVG text, and would make all of these labels higher-quality overall, particularly in vector output like PDF. Unfortunately it's a fairly major refactor, and I'm not quite sure what would be needed to pull the coordinates for all of these text items out of the stack.gl modules that handle 3D subplots and return them to our SVG drawing code.