Jupyter 绘图怎么显示中文

1. 简单加2行代码即可。

import matplotlib.pyplot as plt  
plt.rcParams['font.sans-serif'] = [u'SimHei']
plt.rcParams['axes.unicode_minus'] = False

 

posted @ 2019-10-18 14:41  百家齐鸣  阅读(2366)  评论(0编辑  收藏  举报