matplotlib.pyplot.figure
来源:互联网 发布:argentum银霜 知乎 编辑:程序博客网 时间:2024/05/22 13:29
matplotlib.pyplot.
figure
(num=None, figsize=None, dpi=None, facecolor=None, edgecolor=None, frameon=True, FigureClass=<class 'matplotlib.figure.Figure'>, **kwargs)Creates a new figure.
num : integer or string, optional, default: none
If not provided, a new figure will be created, and the figure number will be incremented. The figure objects holds this number in a
number
attribute. If num is provided, and a figure with this id already exists, make it active, and returns a reference to it. If this figure does not exists, create it and returns it. If num is a string, the window title will be set to this figure’snum
.
figsize : tuple of integers, optional, default: None
width, height in inches. If not provided, defaults to rc figure.figsize.
dpi : integer, optional, default: None
resolution of the figure. If not provided, defaults to rc figure.dpi.
facecolor :
the background color. If not provided, defaults to rc figure.facecolor
edgecolor :
the border color. If not provided, defaults to rc figure.edgecolor
figure : Figure
The Figure instance returned will also be passed to new_figure_manager in the backends, which allows to hook custom Figure classes into the pylab interface. Additional kwargs will be passed to the figure init function.
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
- matplotlib.pyplot.figure
- matplotlib.pyplot.figure
- matplotlib基础——pyplot.figure()
- matplotlib.pyplot
- matplotlib.pyplot
- class matplotlib.figure.Figure
- matplotlib--figure
- python matplotlib.pyplot importerror
- 【python】matplotlib.pyplot介绍
- matplotlib.pyplot.imshow
- matplotlib.pyplot介绍
- matplotlib.pyplot画图
- matplotlib.pyplot入门
- Python---matplotlib.pyplot
- matplotlib.pyplot.py
- matplotlib.pyplot介绍
- 学习matplotlib--pyplot教程
- 【python】matplotlib.pyplot入门
- [BZOJ 4883][Lydsy2017年5月月赛]棋盘上的守卫:最小生成树
- 旋转法列出所有排列
- 欢迎使用CSDN-markdown编辑器
- hdu 5091 beam cannon
- mybatis一些小技巧
- matplotlib.pyplot.figure
- 关于zkpython的安装方法
- 使用简单的python语句编写爬虫 定时拿取信息并存入txt
- 谁来拯救易到的困局 “补贴坑”该如何填?
- android service 接口权限管控
- JDBC连接MySQL测试
- 如何成为技术“高手”
- poj 1740 博弈
- Leetcode学习(12)—— Base 7