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

Method set_longitude_grid

lib/matplotlib/projections/geo.py:172–179  ·  view source on GitHub ↗

Set the number of degrees between each longitude grid.

(self, degrees)

Source from the content-addressed store, hash-verified

170 % (abs(lat), ns, abs(lon), ew))
171
172 def set_longitude_grid(self, degrees):
173 """
174 Set the number of degrees between each longitude grid.
175 """
176 # Skip -180 and 180, which are the fixed limits.
177 grid = np.arange(-180 + degrees, 180, degrees)
178 self.xaxis.set_major_locator(FixedLocator(np.deg2rad(grid)))
179 self.xaxis.set_major_formatter(self.ThetaFormatter(degrees))
180
181 def set_latitude_grid(self, degrees):
182 """

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