get_fig_size

get_fig_size(fig, **savefig_kw)[source]

Measures the actual saved figure size.

Contrary to the fig.get_size_inches method, returns the save-time (rather than draw-time) values. The result depends on the backend. Supported formats: see SUPPORTED_FORMATS.

Parameters:
  • fig (Figure) – Figure whose size is to be determined.

  • **savefig_kw – Keyword arguments for savefig().

Returns:

Actual width and height of the saved figure, in inches.

Return type:

ndarray