-
matplotlib.pyplot.axis() 官方文档
matplotlib.pyplot.axis(*v, **kwargs)
获得或设定axis内容的便利方法。
常用参数:
xmin, ymin, xmax, ymax : float, optional
The axis limits to be set. Either none or all of the limits must be given.
option : str
Possible values:
Value | Description |
---|---|
‘on’ | Turn on axis lines and labels. |
‘off’ | Turn off axis lines and labels. |
‘equal’ | Set equal scaling (i.e., make circles circular) by changing axis limits. |
‘scaled’ | Set equal scaling (i.e., |