D:\Anaconda3\lib\site-packages\matplotlib\backends\backend_agg.py:180: RuntimeWarning: Glyph 26041 missing from current font.
font.set_text(s, 0, flags=flags)
D:\Anaconda3\lib\site-packages\matplotlib\backends\backend_agg.py:180: RuntimeWarning: Glyph 31243 missing from current font.
font.set_text(s, 0, flags=flags)
D:\Anaconda3\lib\site-packages\matplotlib\backends\backend_agg.py:180: RuntimeWarning: Glyph 22270 missing from current font.
font.set_text(s, 0, flags=flags)
D:\Anaconda3\lib\site-packages\matplotlib\backends\backend_agg.py:180: RuntimeWarning: Glyph 20687 missing from current font.
font.set_text(s, 0, flags=flags)
This is an error message, you only need to complete the following code (which one is missing)
from matplotlib import font_manager as fm, rcParams
import matplotlib as plt
plt.rcParams['font.sans-serif']=['SimHei'] #Show Chinese label
plt.rcParams['axes.unicode_minus']=False #These two lines need to be set manually
Then it will be displayed normally

The first drawing job with python ^ _ ^
currently using matplotlib.pyplot When drawing and showing pictures, if the title is set to Chinese, then a warning: RuntimeWarning: Glyph XXXXX missing from current font. font.set_text(s, 0.0, flags=...
Problem Description: In the process of using Seaborn to draw the heat map, an error RuntimeWarning: Glyph xxxxx missing from Current Font. System: Windows 10 python version: python 3.6 Error reason: C...
Pyplot does not default to support Chinese display, and there is no self-contained Chinese font, so you need to download the required fonts yourself and modify the RCPARAMS parameter to display Chines...
Article Directory Preface Python classic font warning: RuntimeWarning: Glyph missing from current font. font.set_text(s, 0.0, flags=flags) && solution There must be a window open f...
MatPlotLib solves garbled problems As shown: Add a name when the chart adds a name, how to deal with it. Add code: After adding this segment code, the prompt: FindFont: Font Family ['San...
Problem display: Solution: Used to display Chinese tags, Solving the negative is a problem....
MATPLOTLIB drawing unable to display Chinese RuntimeWarning: Glyph 30452 missing from current font. PLT picture Title displayed Chinese is square bracket Error map: Workaround: An error is because the...
RuntimeWarning: Glyph 39057 missing from current font. Solution: Add the following program at the beginning of the program:...
Linux uses Python Matplotlib to display Chinese without fonts, resulting in Chinese garbled characters Font download link:https://github.com/Heath-Ledger/WorkFile/blob/main/simhei.ttf Refresh the font...
When you use the MatPlotlib package for the first time, you will inevitably appear as follows: Just add the following code, you can solve it. Add the code to the following location:...