热线电话:13121318867

登录
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

4.3675
5
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子