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

Method clear

lib/mpl_toolkits/mplot3d/axes3d.py:1556–1572  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1554 vertical_axis=vertical_axis, share=True)
1555
1556 def clear(self):
1557 # docstring inherited.
1558 super().clear()
1559 if self._focal_length == np.inf:
1560 self._zmargin = mpl.rcParams['axes.zmargin']
1561 else:
1562 self._zmargin = 0.
1563
1564 xymargin = 0.05 * 10/11 # match mpl3.8 appearance
1565 self.xy_dataLim = Bbox([[xymargin, xymargin],
1566 [1 - xymargin, 1 - xymargin]])
1567 # z-limits are encoded in the x-component of the Bbox, y is un-used
1568 self.zz_dataLim = Bbox.unit()
1569 self._view_margin = 1/48 # default value to match mpl3.8
1570 self.autoscale_view()
1571
1572 self.grid(mpl.rcParams['axes3d.grid'])
1573
1574 def _button_press(self, event):
1575 if event.inaxes == self:

Callers

nothing calls this directly

Calls 4

autoscale_viewMethod · 0.95
gridMethod · 0.95
BboxClass · 0.90
unitMethod · 0.80

Tested by

no test coverage detected