set_fig_size
full name:
mplotter.sizing.set_fig_size
type: function
- set_fig_size(fig, size=None, which='both', **savefig_kw)[source]
Sets the actual saved figure size.
Contrary to the
set_size_inches()
, this tries to fix the save-time width and height by guessing appropriate draw-time values. The result depends on the backend.- Parameters:
fig (
Figure
) – Figure whose size has to be adjusted.size (float, default
fig.get_size_inches()
) – Desired save-time figure size, in inches.which ({"x", "y", "both"}, default "both") – Weather to fix the absolute value of the width, heigth or both. If “x” or “y” is specified, the other dimension will be adjusted in such a way to keep the original proportions of the figure.
**savefig_kw – Keyword arguments for
savefig()
.
- Returns:
Draw-time width and height of the figure, in inches.
- Return type: