gsplot.figure.figure_tools#
Functions
A convenient function to retrieve the size of the current Matplotlib figure. |
- get_figure_size()[source]#
A convenient function to retrieve the size of the current Matplotlib figure.
This function is a shorthand for calling FigureLayout().get_figure_size().
- Returns:
The width and height of the current figure in inches as a NumPy array.
- Return type:
Examples
>>> import gsplot as gs >>> size = gs.get_figure_size() >>> print(size) array([10., 6.]) # Example output (width, height in inches)