jupyter notebook 绘图中文显示乱码

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

添上上面的代码,绘图就能正常显示中文了

猜你喜欢

转载自blog.csdn.net/silence2015/article/details/79097440
今日推荐