class_docstr: An abstract base class for geographic projections
class_docstr_tok: ["An","abstract","base","class","for","geographic","projections"]
docstr: Set the latitude(s) at which to stop drawing the longitude grids.
  
  Often, in geographic projections, you wouldn't want to draw
  longitude gridlines near the poles.  This allows the user to
  specify the degree at which to stop drawing longitude grids.
  
  This is an example method that is specific to this projection
  class -- it provides an interface to something that has no
  analogy in the base Axes class.
docstr_tok: ["Set","the","latitude","(","s",")","at","which","to","stop","drawing","the","longitude","grids",".","Often",",","in","geographic","projections",",","you","would","n't","want","to","draw","longitude","gridlines","near","the","poles",".","This","allows","the","user","to","specify","the","degree","at","which","to","stop","drawing","longitude","grids",".","This","is","an","example","method","that","is","specific","to","this","projection","class","--","it","provides","an","interface","to","something","that","has","no","analogy","in","the","base","Axes","class","."]
code: def set_longitude_grid_ends(self, degrees):
      """
      Set the latitude(s) at which to stop drawing the longitude grids.
  
      Often, in geographic projections, you wouldn't want to draw
      longitude gridlines near the poles.  This allows the user to
      specify the degree at which to stop drawing longitude grids.
  
      This is an example method that is specific to this projection
      class -- it provides an interface to something that has no
      analogy in the base Axes class.
      """
      self._longitude_cap = np.deg2rad(degrees)
      self._xaxis_pretransform.clear().scale(
          1.0, self._longitude_cap * 2.0
      ).translate(0.0, -self._longitude_cap)
  
imports: import numpy
  import matplotlib
  from matplotlib.axes import Axes
  import matplotlib.axis
  from matplotlib.patches import Circle
  from matplotlib.path import Path
  from matplotlib.projections import register_projection
  import matplotlib.spines
  from matplotlib.ticker import FixedLocator, Formatter, NullLocator
  from matplotlib.transforms import Affine2D, BboxTransformTo, Transform
label_desc: Use image node_id 18 for calling the GeoAxes obj's underlying member method code with example usage: obj.set_longitude_grid_ends(degrees) without return types