8000 the font set {"font.sans-serif":"SimHei"} is ignored by plt.rc_context in jupyter · Issue #20738 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
the font set {"font.sans-serif":"SimHei"} is ignored by plt.rc_context in jupyter #20738
Open
@CatNofishing

Description

@CatNofishing

Bug report

plt.rc_context {"font.sans-serif":"SimHei"} does not work , but it work well in plt.rcParams.update(rc).

image

Code for reproduction

rc={
    "font.sans-serif":"SimHei",
    "axes.unicode_minus":False,
    }
with plt.rc_context(rc):
    plt.xlabel("上海市")

Expected outcome

image

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

      0