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

Method set_zmargin

lib/mpl_toolkits/mplot3d/axes3d.py:547–567  ·  view source on GitHub ↗

Set padding of Z data limits prior to autoscaling. *m* times the data interval will be added to each end of that interval before it is used in autoscaling. If *m* is negative, this will clip the data range instead of expanding it. For example, if your data

(self, m)

Source from the content-addressed store, hash-verified

545 return self._zmargin
546
547 def set_zmargin(self, m):
548 """
549 Set padding of Z data limits prior to autoscaling.
550
551 *m* times the data interval will be added to each end of that interval
552 before it is used in autoscaling. If *m* is negative, this will clip
553 the data range instead of expanding it.
554
555 For example, if your data is in the range [0, 2], a margin of 0.1 will
556 result in a range [-0.2, 2.2]; a margin of -0.1 will result in a range
557 of [0.2, 1.8].
558
559 Parameters
560 ----------
561 m : float greater than -0.5
562 """
563 if m <= -0.5:
564 raise ValueError("margin must be greater than -0.5")
565 self._zmargin = m
566 self._request_autoscale_view("z")
567 self.stale = True
568
569 def margins(self, *margins, x=None, y=None, z=None, tight=True):
570 """

Callers 2

marginsMethod · 0.95
scatterMethod · 0.95

Calls 1

Tested by

no test coverage detected