matplotlib.pyplot.
figure
(num=None, figsize=None, dpi=None, facecolor=None, edgecolor=None, frameon=True, FigureClass=<class 'matplotlib.figure.Figure'>, clear=False, **kwargs)¶Creates 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 : class derived from matplotlib.figure.Figure
clear : bool, optional, default: False
|
---|---|
Returns: | figure : Figure
|
Notes
If you are creating many figures, make sure you explicitly call “close” on the figures you are not using, because this will enable pylab to properly clean up the memory.
rcParams defines the default values, which can be modified in the matplotlibrc file