Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Latex axis values / numbers

I am using MathJax to produce a plot with Latex legends and axis labels.

Is it possible to also have latex font for the legend axis numbers?

The reason I’m trying to do this is so that when I increase the font of the text in the plot the whole graph increases.

Currently I have a graph where an increase in font size effects the latex and the ‘normal text’ differently (the latex doesn’t appear to enlarge as much)

Many thanks

Not at the moment unfortunately.

That’s an unfortunately limitation of our current LaTeX support.

You could try to use HTML symbol entities instead e.g. which seems to scale better with size.

Many thanks for the answer.

Unfortunately HTML symbol entities don’t have the superscript numbers I’m looking for (although they do have 0 1 2 3 they are missing 4 5 6 7 8 9)

No worries , perhaps Plotly 2.0 will solve everything

All the best


I’ve also tried ascii codes like


but these also scale differently when the font is incresed