I have created a figure and have attached to it a title like this:
def func(): fig = plt.figure() fig.suptitle(\"my title\") return fig >
def func(): fig = plt.figure() fig.suptitle(\"my title\") return fig
You can get the title through the axes:
fig.axes[0].get_title()
In case you have access to the axis itself, you can directly do:
ax.get_title()