Set the 3D y-axis view limits. Parameters ---------- bottom : float, optional The bottom ylim in data coordinates. Passing *None* leaves the limit unchanged. The bottom and top ylims may also be passed as the tuple (*
(self, bottom=None, top=None, *, emit=True, auto=False,
view_margin=None, ymin=None, ymax=None)
| 947 | minpos=self.xy_dataLim.minposx) |
| 948 | |
| 949 | def set_ylim(self, bottom=None, top=None, *, emit=True, auto=False, |
| 950 | view_margin=None, ymin=None, ymax=None): |
| 951 | """ |
| 952 | Set the 3D y-axis view limits. |
| 953 | |
| 954 | Parameters |
| 955 | ---------- |
| 956 | bottom : float, optional |
| 957 | The bottom ylim in data coordinates. Passing *None* leaves the |
| 958 | limit unchanged. |
| 959 | |
| 960 | The bottom and top ylims may also be passed as the tuple |
| 961 | (*bottom*, *top*) as the first positional argument (or as |
| 962 | the *bottom* keyword argument). |
| 963 | |
| 964 | .. ACCEPTS: (bottom: float, top: float) |
| 965 | |
| 966 | top : float, optional |
| 967 | The top ylim in data coordinates. Passing *None* leaves the |
| 968 | limit unchanged. |
| 969 | |
| 970 | emit : bool, default: True |
| 971 | Whether to notify observers of limit change. |
| 972 | |
| 973 | auto : bool or None, default: False |
| 974 | Whether to turn on autoscaling of the y-axis. *True* turns on, |
| 975 | *False* turns off, *None* leaves unchanged. |
| 976 | |
| 977 | view_margin : float, optional |
| 978 | The additional margin to apply to the limits. |
| 979 | |
| 980 | ymin, ymax : float, optional |
| 981 | They are equivalent to bottom and top respectively, and it is an |
| 982 | error to pass both *ymin* and *bottom* or *ymax* and *top*. |
| 983 | |
| 984 | Returns |
| 985 | ------- |
| 986 | bottom, top : (float, float) |
| 987 | The new y-axis limits in data coordinates. |
| 988 | |
| 989 | See Also |
| 990 | -------- |
| 991 | get_ylim |
| 992 | set_ybound, get_ybound |
| 993 | invert_yaxis, yaxis_inverted |
| 994 | |
| 995 | Notes |
| 996 | ----- |
| 997 | The *bottom* value may be greater than the *top* value, in which |
| 998 | case the y-axis values will decrease from *bottom* to *top*. |
| 999 | |
| 1000 | Examples |
| 1001 | -------- |
| 1002 | >>> set_ylim(bottom, top) |
| 1003 | >>> set_ylim((bottom, top)) |
| 1004 | >>> bottom, top = set_ylim(bottom, top) |
| 1005 | |
| 1006 | One limit may be left unchanged. |