python 中使用matplotlib.pyplot 绘图,其中plt.axes()的用法
import matplotlib.pyplot as plt 后,可以在命令行中输入指令:
plt.axes?
来查看axes函数的用法,其返回的文档如下:
Signature: plt.axes(arg=None, **kwargs)
Docstring:
Add an axes to the current figure and make it the current axes.
Parameters
arg : None or 4-tuple or Axes
The exact behavior of this function depends on the type:
- None: A new full window axes is added using
subplot(111, **kwargs)
- 4-tuple of floats rect = [left, bottom, width, height]
.
A new axes is added with dimensions rect in normalized
(0, 1) units using ~.Figure.add_axes
on the current figure.
- .Axes