起序:使用 matplotlib
绘制图的时候,可能会出现中文乱码。
加入下面代码,即可解决问题。
from matplotlib import pyplot as plt
plt.rcParams['font.sans-serif']=['SimHei']
plt.rcParams['axes.unicode_minus']=False
起序:使用 matplotlib
绘制图的时候,可能会出现中文乱码。
加入下面代码,即可解决问题。
from matplotlib import pyplot as plt
plt.rcParams['font.sans-serif']=['SimHei']
plt.rcParams['axes.unicode_minus']=False