matplotlib学习——图表中的中文无法显示

增加以下代码即可。

from pylab import mpl
mpl.rcParams['font.sans-serif'] = ['SimHei']

 

你可能感兴趣的:(Matplotlib)