matplotlib.pyplot.
figure
(num=None, figsize=None, dpi=None, facecolor=None, edgecolor=None, frameon=True, FigureClass=<class 'matplotlib.figure.Figure'>, clear=False, **kwargs)[source]¶Create a new figure.
Parameters: | num : integer or string, optional, default: None
figsize : tuple of integers, optional, default: None
dpi : integer, optional, default: None
facecolor :
edgecolor :
frameon : bool, optional, default: True
FigureClass : subclass of
clear : bool, optional, default: False
|
---|---|
Returns: | figure : |
Notes
If you are creating many figures, make sure you explicitly call
pyplot.close()
on the figures you are not using, because this will
enable pyplot to properly clean up the memory.
rcParams
defines the default values, which can be modified
in the matplotlibrc file.
matplotlib.pyplot.figure
¶