【发布时间】:2016-06-05 14:01:56
【问题描述】:
我在 ipython 笔记本单元格中并排绘制了两个图。但是,我无法更改标题的大小。我可以通过添加参数fontsize = 20 来更改标签的大小。如何更改 df 和 df2 的标题。
fig, axes = plt.subplots(ncols=2, figsize = (20,10))
df.plot('barh', title = 'Legal Collectible Answer Distribution', fontsize = 20, ax = axes[0])
df2.plot(kind = 'pie', autopct = '%1.0f%%', legend = False, title = 'Legal Collectible Answer Distribution', fontsize = 20, ax =axes[1])
【问题讨论】:
标签: python pandas matplotlib