日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

python matplotlab.pyplot.axis()函数的用法

發(fā)布時間:2025/3/19 python 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python matplotlab.pyplot.axis()函数的用法 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

應用: 深入淺出python機器學習_如何用python畫(繪制)二維函數(shù)(二維圖)?
https://blog.csdn.net/Dontla/article/details/98501737

作用就是設置圖像的軸的一系列屬性

直接上官方文檔:

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:

======== ========================================================== Value Description ======== ========================================================== 'on' Turn on axis lines and labels. Same as ``True``. 'off' Turn off axis lines and labels. Same as ``False``. 'equal' Set equal scaling (i.e., make circles circular) bychanging axis limits. 'scaled' Set equal scaling (i.e., make circles circular) bychanging dimensions of the plot box. 'tight' Set limits just large enough to show all data. 'auto' Automatic scaling (fill plot box with data). 'normal' Same as 'auto'; deprecated. 'image' 'scaled' with axis limits equal to data limits. 'square' Square plot; similar to 'scaled', but initially forcing``xmax-xmin = ymax-ymin``. ======== ==========================================================

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

總結

以上是生活随笔為你收集整理的python matplotlab.pyplot.axis()函数的用法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內容還不錯,歡迎將生活随笔推薦給好友。