I am using matplotlib together with latex labels for the axis, title and colorbar labels
While it works really great most of the time, it has some issues when you have a formula using ext.
One really simple example.
from matplotlib import pyplot as plt
plt.plot([1,2,3])
plt.title(r"$f_{ext{cor, r}}$")
plt.show()
This will result in an error message like:
IPython/core/formatters.py:239: FormatterWarning: Exception in image/png formatter:
f_{ext{1cor, r}}
^
Unknown symbol: ext (at char 3), (line:1, col:4)
FormatterWarning,
Is there an easy way to use ext in there?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…