- Axes.axis(arg=None, /, *, emit=True, **kwargs)[source]#
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, ymaxfloat, optional
The axis limits to be set. This can also be achieved using
ax.set(xlim=(xmin, xmax), ylim=(ymin, ymax))
- optionbool or str
If a bool, turns axis lines and labels on or off. If a string, possible values are:
- emitbool, default: True
Whether observers are notified of the axis limit change. This option is passed on to
set_xlimandset_ylim.
- Returns:
- xmin, xmax, ymin, ymaxfloat
The axis limits.
Notes
For 3D Axes, this method additionally takes zmin, zmax as parameters and likewise returns them.
matplotlib.axes.Axes.axis — Matplotlib 3.11.0.dev1837+g29b356467 documentation