python中pyplot图表中文正常显示

 pyplot制图默认不支持中文显示,例如如下代码,图表为 # -*- coding:utf-8 -*- # author:qyy time:2019-5-29 import matplotlib.pyplot as plt x = [1, 2, 3, 4, 5] # 设置图标标题,并给坐标轴添加标签 plt.title("直线", fontsize=24) plt.plot(x, x) p
相关文章
相关标签/搜索