Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]: \mathcal does not work when font.weight is "bold" #22056

Open
@novakboskov

Description

@novakboskov

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp