This gives the width and height in inches. bbox = ax.get_window_extent().transformed(fig.dpi_scale_trans.inverted()) width, height = bbox.width, bbox.height.
確定! 回上一頁