Set the 3D x-axis view limits. Parameters ---------- left : float, optional 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
(self, left=None, right=None, *, emit=True, auto=False,
view_margin=None, xmin=None, xmax=None)
| 874 | return axis._set_lim(lower, upper, emit=emit, auto=auto) |
| 875 | |
| 876 | def set_xlim(self, left=None, right=None, *, emit=True, auto=False, |
| 877 | view_margin=None, xmin=None, xmax=None): |
| 878 | """ |
| 879 | Set the 3D x-axis view limits. |
| 880 | |
| 881 | Parameters |
| 882 | ---------- |
| 883 | left : float, optional |
| 884 | The left xlim in data coordinates. Passing *None* leaves the |
| 885 | limit unchanged. |
| 886 | |
| 887 | The left and right xlims may also be passed as the tuple |
| 888 | (*left*, *right*) as the first positional argument (or as |
| 889 | the *left* keyword argument). |
| 890 | |
| 891 | .. ACCEPTS: (left: float, right: float) |
| 892 | |
| 893 | right : float, optional |
| 894 | The right xlim in data coordinates. Passing *None* leaves the |
| 895 | limit unchanged. |
| 896 | |
| 897 | emit : bool, default: True |
| 898 | Whether to notify observers of limit change. |
| 899 | |
| 900 | auto : bool or None, default: False |
| 901 | Whether to turn on autoscaling of the x-axis. *True* turns on, |
| 902 | *False* turns off, *None* leaves unchanged. |
| 903 | |
| 904 | view_margin : float, optional |
| 905 | The additional margin to apply to the limits. |
| 906 | |
| 907 | xmin, xmax : float, optional |
| 908 | They are equivalent to left and right respectively, and it is an |
| 909 | error to pass both *xmin* and *left* or *xmax* and *right*. |
| 910 | |
| 911 | Returns |
| 912 | ------- |
| 913 | left, right : (float, float) |
| 914 | The new x-axis limits in data coordinates. |
| 915 | |
| 916 | See Also |
| 917 | -------- |
| 918 | get_xlim |
| 919 | set_xbound, get_xbound |
| 920 | invert_xaxis, xaxis_inverted |
| 921 | |
| 922 | Notes |
| 923 | ----- |
| 924 | The *left* value may be greater than the *right* value, in which |
| 925 | case the x-axis values will decrease from *left* to *right*. |
| 926 | |
| 927 | Examples |
| 928 | -------- |
| 929 | >>> set_xlim(left, right) |
| 930 | >>> set_xlim((left, right)) |
| 931 | >>> left, right = set_xlim(left, right) |
| 932 | |
| 933 | One limit may be left unchanged. |