matplotlib.artist.Artist.get_in_layout

Artist.get_in_layout()[源代码]

返回布尔标志, True 如果布局计算中包含艺术家。

例如。 受约束的布局参考线Figure.tight_layout()fig.savefig(fname, bbox_inches='tight') .