Set the figure size in inches.
Call signatures:
fig.set_size_inches(w, h) # OR fig.set_size_inches((w, h))
Width and height in inches (if height not specified as a separate argument) or width.
Height in inches.
If True, the canvas size is automatically updated, e.g., you can resize the figure window from the shell.
See also
To transform from pixels to inches divide by Figure.dpi.
© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/matplotlib.figure.Figure.set_size_inches.html