jupyter notebook 绘图中文显示乱码解决办法及绘图大小

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

插入上面代码即可

参考博客:https://blog.csdn.net/silence2015/article/details/79097440?

 

绘制图形大小:

plt.rcParams['figure.figsize'] = (10.0, 8.0)

 参考博客:https://blog.csdn.net/weixin_35834894/article/details/99315250?

 

你可能感兴趣的:(杂七杂八BUG)