python matplotlab.pyplot.axis()函数的用法
應(yīng)用: 深入淺出python機(jī)器學(xué)習(xí)_如何用python畫(繪制)二維函數(shù)(二維圖)?
https://blog.csdn.net/Dontla/article/details/98501737
作用就是設(shè)置圖像的軸的一系列屬性
直接上官方文檔:
Signature: plt.axis(*args, **kwargs)
Docstring:
Convenience method to get or set some axis properties.
Call signatures::
xmin, xmax, ymin, ymax = axis()
xmin, xmax, ymin, ymax = axis([xmin, xmax, ymin, ymax])
xmin, xmax, ymin, ymax = axis(option)
xmin, xmax, ymin, ymax = axis(**kwargs)
Parameters
xmin, xmax, ymin, ymax : float, optional
The axis limits to be set. Either none or all of the limits must
be given.
option : bool or str
If a bool, turns axis lines and labels on or off. If a string,
possible values are:
emit : bool, optional, default True
Whether observers are notified of the axis limit change.
This option is passed on to ~.Axes.set_xlim and
~.Axes.set_ylim.
Returns
xmin, xmax, ymin, ymax : float
The axis limits.
See also
matplotlib.axes.Axes.set_xlim
matplotlib.axes.Axes.set_ylim
File: c:\users\huawei\appdata\local\programs\python\python36\lib\site-packages\matplotlib\pyplot.py
Type: function
總結(jié)
以上是生活随笔為你收集整理的python matplotlab.pyplot.axis()函数的用法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: python lambda表达式的使用方
- 下一篇: python matplotlib.py