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

Method set_longitude_grid_ends

lib/matplotlib/projections/geo.py:190–198  ·  view source on GitHub ↗

Set the latitude(s) at which to stop drawing the longitude grids.

(self, degrees)

Source from the content-addressed store, hash-verified

188 self.yaxis.set_major_formatter(self.ThetaFormatter(degrees))
189
190 def set_longitude_grid_ends(self, degrees):
191 """
192 Set the latitude(s) at which to stop drawing the longitude grids.
193 """
194 self._longitude_cap = np.deg2rad(degrees)
195 self._xaxis_pretransform \
196 .clear() \
197 .scale(1.0, self._longitude_cap * 2.0) \
198 .translate(0.0, -self._longitude_cap)
199
200 def get_data_ratio(self):
201 """Return the aspect ratio of the data itself."""

Callers 1

clearMethod · 0.95

Calls 3

translateMethod · 0.80
scaleMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected