MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_zbound

Method set_zbound

lib/mpl_toolkits/mplot3d/axes3d.py:808–830  ·  view source on GitHub ↗

Set the lower and upper numerical bounds of the z-axis. This method will honor axis inversion regardless of parameter order. It will not change the autoscaling setting (`.get_autoscaley_on()`). Parameters ---------- lower, upper : float or None

(self, lower=None, upper=None, view_margin=None)

Source from the content-addressed store, hash-verified

806 lower, upper, view_margin)
807
808 def set_zbound(self, lower=None, upper=None, view_margin=None):
809 """
810 Set the lower and upper numerical bounds of the z-axis.
811 This method will honor axis inversion regardless of parameter order.
812 It will not change the autoscaling setting (`.get_autoscaley_on()`).
813
814 Parameters
815 ----------
816 lower, upper : float or None
817 The lower and upper bounds. If *None*, the respective axis bound
818 is not modified.
819 view_margin : float or None
820 The margin to apply to the bounds. If *None*, the margin is handled
821 by `.set_zlim`.
822
823 See Also
824 --------
825 get_zbound
826 get_zlim, set_zlim
827 invert_zaxis, zaxis_inverted
828 """
829 self._set_bound3d(self.get_zbound, self.set_zlim, self.zaxis_inverted,
830 lower, upper, view_margin)
831
832 def _set_lim3d(self, axis, lower=None, upper=None, *, emit=True,
833 auto=False, view_margin=None, axmin=None, axmax=None,

Callers 1

test_inverted_zaxisFunction · 0.80

Calls 1

_set_bound3dMethod · 0.95

Tested by 1

test_inverted_zaxisFunction · 0.64