mpl_gui.FigureRegistry.figure#
- FigureRegistry.figure(*, figsize=None, dpi=None, facecolor=None, edgecolor=None, frameon=True, FigureClass=<class 'mpl_gui._figure.Figure'>, clear=False, auto_draw=True, **kwargs)#
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
Figureinstance.- tight_layoutbool or dict, default:
rcParams["figure.autolayout"](default:False) If
Falseuse subplotpars. IfTrueadjust subplot parameters usingtight_layoutwith default padding. When providing a dict containing the keyspad,w_pad,h_pad, andrect, the defaulttight_layoutpaddings will be overridden.- **kwargs : optional
See
Figurefor other possible arguments.
- Returns: