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: |
|
---|---|
Returns: |
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
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.figure.html