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

Method set_latitude_grid

lib/matplotlib/projections/geo.py:181–188  ·  view source on GitHub ↗

Set the number of degrees between each latitude grid.

(self, degrees)

Source from the content-addressed store, hash-verified

179 self.xaxis.set_major_formatter(self.ThetaFormatter(degrees))
180
181 def set_latitude_grid(self, degrees):
182 """
183 Set the number of degrees between each latitude grid.
184 """
185 # Skip -90 and 90, which are the fixed limits.
186 grid = np.arange(-90 + degrees, 90, degrees)
187 self.yaxis.set_major_locator(FixedLocator(np.deg2rad(grid)))
188 self.yaxis.set_major_formatter(self.ThetaFormatter(degrees))
189
190 def set_longitude_grid_ends(self, degrees):
191 """

Callers 1

clearMethod · 0.95

Calls 3

FixedLocatorClass · 0.90
set_major_locatorMethod · 0.45
set_major_formatterMethod · 0.45

Tested by

no test coverage detected