我有一个包含许多次要情节的人物.
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