mpl_gui.figure#
- mpl_gui.figure(*, label=None, figsize=None, dpi=None, facecolor=None, edgecolor=None, frameon=True, FigureClass=<class 'mpl_gui._figure.Figure'>, clear=False, auto_draw=True, **kwargs)[source]#
Create a new figure
- Parameters:
- labelstr, optional
Label for the figure. Will be used as the window title
- figsize(float, float), default:
rcParams["figure.figsize"]
(default:[6.4, 4.8]
) Width, height in inches.
- dpifloat, default:
rcParams["figure.dpi"]
(default:100.0
) The resolution of the figure in dots-per-inch.
- facecolorcolor, default:
rcParams["figure.facecolor"]
(default:'white'
) The background color.
- edgecolorcolor, default:
rcParams["figure.edgecolor"]
(default:'white'
) The border color.
- frameonbool, default: True
If False, suppress drawing the figure frame.
- FigureClasssubclass of
Figure
Optionally use a custom
Figure
instance.- tight_layoutbool or dict, default:
rcParams["figure.autolayout"]
(default:False
) If
False
use subplotpars. IfTrue
adjust subplot parameters usingtight_layout
with default padding. When providing a dict containing the keyspad
,w_pad
,h_pad
, andrect
, the defaulttight_layout
paddings will be overridden.- **kwargs : optional
See
Figure
for other possible arguments.
- Returns: