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

Method clear

lib/mpl_toolkits/axisartist/axislines.py:459–470  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

457class AxesZero(Axes):
458
459 def clear(self):
460 super().clear()
461 new_floating_axis = self.get_grid_helper().new_floating_axis
462 self._axislines.update(
463 xzero=new_floating_axis(
464 nth_coord=0, value=0., axis_direction="bottom", axes=self),
465 yzero=new_floating_axis(
466 nth_coord=1, value=0., axis_direction="left", axes=self),
467 )
468 for k in ["xzero", "yzero"]:
469 self._axislines[k].line.set_clip_path(self.patch)
470 self._axislines[k].set_visible(False)
471
472
473Subplot = Axes

Callers

nothing calls this directly

Calls 5

get_grid_helperMethod · 0.80
clearMethod · 0.45
updateMethod · 0.45
set_clip_pathMethod · 0.45
set_visibleMethod · 0.45

Tested by

no test coverage detected