Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Description
Bug summary
I just noticed that I cannot use\mathcal
if I wantrcPrams[font.weight] = "bold"
.
Let me know if that's not a bug but rather expected behavior.
Code for reproduction
importmatplotlib.pyplotaspltplt.rcParams['font.weight']='bold'plt.plot(range(10),label=r'$\mathcal{A}$')plt.legend()plt.show()
Actual outcome
/home/novak/.virtualenvs/statistics/lib/python3.6/site-packages/matplotlib/mathtext.py:849: MathTextWarning: Font 'nonuniit' does not have a glyph for 'A' [U+e22d]
MathTextWarning)
/home/novak/.virtualenvs/statistics/lib/python3.6/site-packages/matplotlib/mathtext.py:850: MathTextWarning: Substituting with a dummy symbol.
warn("Substituting with a dummy symbol.", MathTextWarning)
Expected outcome
I get that LaTex may not do\mathcal
in bold, but I'd expect Matplotlib to ignore the "bold" directive when plotting the legend.
However, I'm not sure how tricky would that be for implementation.
Additional information
No response
Operating system
Ubuntu 18.04
Matplotlib Version
2.2.3
Matplotlib Backend
TkAgg
Python version
3.6.9
Jupyter version
None
Installation
pip