【发布时间】:2014-10-04 02:01:06
【问题描述】:
我有一个包含许多子图的图形。
fig = plt.figure(num=None, figsize=(26, 12), dpi=80, facecolor='w', edgecolor='k')
fig.canvas.set_window_title('Window Title')
# Returns the Axes instance
ax = fig.add_subplot(311)
ax2 = fig.add_subplot(312)
ax3 = fig.add_subplot(313)
如何为子图添加标题?
fig.suptitle 为所有图表添加标题,尽管ax.set_title() 存在,但后者不会为我的子图添加任何标题。
感谢您的帮助。
编辑:
更正了关于 set_title() 的错字。谢谢 Rutger Kassies
【问题讨论】:
标签: python matplotlib plot subtitle