我知道您可以使用 ax.get_title() 返回轴的标题,但我找不到返回 matplotlib 图的 suptitle 的方法。有没有与 fig.get_suptitle() 类似的东西?
获取图形fig
的字幕文本对象
sup = fig._suptitle
Run Code Online (Sandbox Code Playgroud)
获取suptitle的字符串内容
label = fig._suptitle.get_text()
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
989 次 |
最近记录: |