Tag

Font settings

1 views collected around this technical thread.

Model Perspective
Model Perspective
Oct 20, 2022 · Fundamentals

How to Display Chinese Characters in Matplotlib Plots (Step‑by‑Step)

Matplotlib does not render Chinese text by default, showing squares instead, but you can fix this by setting a Chinese font directly in code, adjusting rcParams, or editing the config file; the example demonstrates loading a local font file and applying it to axis labels and titles.

Chinese charactersData VisualizationFont settings
0 likes · 2 min read
How to Display Chinese Characters in Matplotlib Plots (Step‑by‑Step)