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

Method clear

galleries/examples/misc/custom_projection.py:55–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 # self.spines['geo'].register_axis(self.yaxis)
54
55 def clear(self):
56 # docstring inherited
57 super().clear()
58
59 self.set_longitude_grid(30)
60 self.set_latitude_grid(15)
61 self.set_longitude_grid_ends(75)
62 self.xaxis.set_minor_locator(NullLocator())
63 self.yaxis.set_minor_locator(NullLocator())
64 self.xaxis.set_ticks_position('none')
65 self.yaxis.set_ticks_position('none')
66 self.yaxis.set_tick_params(label1On=True)
67 # Why do we need to turn on yaxis tick labels, but
68 # xaxis tick labels are already on?
69
70 self.grid(rcParams['axes.grid'])
71
72 Axes.set_xlim(self, -np.pi, np.pi)
73 Axes.set_ylim(self, -np.pi / 2.0, np.pi / 2.0)
74
75 def _set_lim_and_transforms(self):
76 # A (possibly non-linear) projection on the (already scaled) data

Callers 5

animation_demo.pyFile · 0.45
__init__Method · 0.45
change_plotMethod · 0.45
updateMethod · 0.45

Calls 10

set_longitude_gridMethod · 0.95
set_latitude_gridMethod · 0.95
NullLocatorClass · 0.90
set_minor_locatorMethod · 0.80
set_tick_paramsMethod · 0.80
set_ticks_positionMethod · 0.45
gridMethod · 0.45
set_xlimMethod · 0.45
set_ylimMethod · 0.45

Tested by

no test coverage detected