matplotlib绘图正常显示中文

from matplotlib import pyplot as plt
plt.style.use('ggplot')
plt.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中文标签
plt.rcParams['axes.unicode_minus']=False

你可能感兴趣的:(matplotlib绘图正常显示中文)