mpl_toolkits.mplot3d.axes3d.Axes3D.set_xlim
- Axes3D.set_xlim(left=None, right=None, *, emit=True, auto=False, view_margin=None, xmin=None,
Set the 3D x-axis view limits.
The left xlim in data coordinates. Passing None leaves the limit unchanged.
The left and right xlims may also be passed as the tuple (left, right) as the first positional argument (or as the left keyword argument).
The right xlim in data coordinates. Passing None leaves the limit unchanged.
Whether to notify observers of limit change.
Whether to turn on autoscaling of the x-axis. True turns on, False turns off, None leaves unchanged.
The additional margin to apply to the limits.
They are equivalent to left and right respectively, and it is an error to pass both xmin and left or xmax and right.
The new x-axis limits in data coordinates.
The left value may be greater than the right value, in which case the x-axis values will decrease from left to right.
>>> set_xlim(left, right)
>>> set_xlim((left, right))
>>> left, right = set_xlim(left, right)
One limit may be left unchanged.
>>> set_xlim(right=right_lim)
Limits may be passed in reverse order to flip the direction of
the x-axis. For example, suppose x represents depth of the
ocean in m. The x-axis limits might be set like the following
so 5000 m depth is at the left of the plot and the surface,
0 m, is at the right.
>>> set_xlim(5000, 0)
mpl_toolkits.mplot3d.axes3d.Axes3D.set_xlimxaxis_inverted