MCPcopy Create free account
hub / github.com/matplotlib/matplotlib / clear

Method clear

lib/mpl_toolkits/axes_grid1/mpl_axes.py:47–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 return self._axislines
46
47 def clear(self):
48 # docstring inherited
49 super().clear()
50 # Init axis artists.
51 self._axislines = self.AxisDict(self)
52 self._axislines.update(
53 bottom=SimpleAxisArtist(self.xaxis, 1, self.spines["bottom"]),
54 top=SimpleAxisArtist(self.xaxis, 2, self.spines["top"]),
55 left=SimpleAxisArtist(self.yaxis, 1, self.spines["left"]),
56 right=SimpleAxisArtist(self.yaxis, 2, self.spines["right"]))
57
58
59class SimpleAxisArtist(Artist):

Callers

nothing calls this directly

Calls 2

SimpleAxisArtistClass · 0.85
updateMethod · 0.45

Tested by

no test coverage detected