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
I tried with another function in Plotly, I confirm latex display is dead in Jupyter notebook:
import plotly.graph_objects as go
# Create data
x = [1, 2, 3, 4, 5]
y = [2, 4, 1, 5, 3]
fig = go.Figure()
fig.add_trace(go.Scatter(x=x, y=y))
# Configure MathJax options
fig.update_layout(
meta={
"mathjax": "svg", # this did not seem to fix the problem
},
font_family='Times New Roman', # this is important for journal publications
title=r'$\text{Render Bug Only Happens in the PDF!}$',
xaxis_title=r'$\Omega=v+\boldsymbol{w} \text{ this all looks bold}$',
yaxis_title='This is not bold as it\'s a regular string.',
showlegend=False,
)
fig.show()
fig.write_image('plot.pdf')
I am using
make_subplots
and insert latex math expression but it displays incorrectly.Here is my sample code:
Here is my output:

As you can see, it does not display correctly.
My setup:
OS: Ubuntu 20.04
Python: 3.10.9
Plotly: 5.16.1
The text was updated successfully, but these errors were encountered: