【发布时间】:2018-01-22 14:08:43
【问题描述】:
我正在使用以下行向条形图添加标签,如何调整字体系列?
plt.xticks(xticks_pos, labels, ha='right', rotation=55, fontsize=20)
【问题讨论】:
标签: python python-2.7 matplotlib bar-chart font-family
我正在使用以下行向条形图添加标签,如何调整字体系列?
plt.xticks(xticks_pos, labels, ha='right', rotation=55, fontsize=20)
【问题讨论】:
标签: python python-2.7 matplotlib bar-chart font-family
您可以使用this question中显示的字体名称。
plt.xticks(xticks_pos, labels, ha='right', rotation=55, fontsize=20, fontname='monospace')
【讨论】: