|

楼主 |
发表于 2021-9-24 09:29:41
|
显示全部楼层
谢谢 支持; 更改下,可以显示图了,但提示:如后面,这个怎么处理呀?
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0,10,30)
y = np.sin(x)
plt.plot(x,y,'bo',label="男生",ms =5)
plt.legend()
plt.show()
/////////////////////////////////////////////////////////////////////////////
Warning (from warnings module):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\matplotlib\backends\backend_agg.py", line 238
font.set_text(s, 0.0, flags=flags)
RuntimeWarning: Glyph 30007 missing from current font.
Warning (from warnings module):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\matplotlib\backends\backend_agg.py", line 238
font.set_text(s, 0.0, flags=flags)
RuntimeWarning: Glyph 29983 missing from current font.
Warning (from warnings module):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\matplotlib\backends\backend_agg.py", line 201
font.set_text(s, 0, flags=flags)
RuntimeWarning: Glyph 30007 missing from current font.
Warning (from warnings module):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\matplotlib\backends\backend_agg.py", line 201
font.set_text(s, 0, flags=flags)
RuntimeWarning: Glyph 29983 missing from current font. |
|