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

Method clear

lib/matplotlib/projections/geo.py:37–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 self.spines['geo'].register_axis(self.yaxis)
36
37 def clear(self):
38 # docstring inherited
39 super().clear()
40
41 self.set_longitude_grid(30)
42 self.set_latitude_grid(15)
43 self.set_longitude_grid_ends(75)
44 self.xaxis.set_minor_locator(NullLocator())
45 self.yaxis.set_minor_locator(NullLocator())
46 self.xaxis.set_ticks_position('none')
47 self.yaxis.set_ticks_position('none')
48 self.yaxis.set_tick_params(label1On=True)
49 # Why do we need to turn on yaxis tick labels, but
50 # xaxis tick labels are already on?
51
52 self.grid(mpl.rcParams['axes.grid'])
53
54 Axes.set_xlim(self, -np.pi, np.pi)
55 Axes.set_ylim(self, -np.pi / 2.0, np.pi / 2.0)
56
57 def _set_lim_and_transforms(self):
58 # A (possibly non-linear) projection on the (already scaled) data

Callers 5

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
clearMethod · 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