2020-04-08
阅读量:
705
matplotlib画图没有文字标签?

如上图所示jupyter notebook运行结果不显示中文,没有文字标签的话,运行一下代码即可解决
from matplotlib.font_manager import FontManager
plt.rcParams['font.sans-serif'] = 'SimHei'
plt.rcParams['axes.unicode_minus'] = False






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论