6161 The edge latitude for the circle bounding North Pole and South Pole-centered
6262 projections. When basemap is the backend this argument must be passed to
6363 `~proplot.constructor.Proj` instead.
64- latmax : float, default: 80
65- The maximum absolute latitude for longitude and latitude gridlines.
66- Longitude gridlines are cut off poleward of this latitude for all basemap
67- and cartopy projections (note this feature does not work in cartopy 0.18).
6864longrid, latgrid, grid : bool, default: :rc:`grid`
6965 Whether to draw longitude and latitude gridlines.
70- Use the keyword `grid` to toggle both.
66+ Use the keyword `grid` to toggle both at once .
7167longridminor, latgridminor, gridminor : bool, default: :rc:`gridminor`
7268 Whether to draw "minor" longitude and latitude lines.
73- Use the keyword `gridminor` to toggle both.
69+ Use the keyword `gridminor` to toggle both at once.
70+ latmax : float, default: 80
71+ The maximum absolute latitude for gridlines. Longitude gridlines are cut off
72+ poleward of this value (note this feature does not work in cartopy 0.18).
73+ nsteps : int, default: :rc:`grid.nsteps`
74+ *For cartopy axes only.*
75+ The number of interpolation steps used to draw gridlines.
7476lonlines, latlines : optional
7577 Aliases for `lonlocator`, `latlocator`.
7678lonlocator, latlocator : locator-spec, optional
9496 Aliases for `lonminorlocator_kw`, `latminorlocator_kw`.
9597lonminorlocator_kw, latminorlocator_kw : optional
9698 As with `lonlocator_kw` and `latlocator_kw` but for the "minor" gridlines.
97- labels : bool, default: :rc:`grid.labels`
98- Sets `lonlabels` and `latlabels` to ``True``. To draw labels
99- by default use e.g. ``pplt.rc['grid.labels'] = True``.
100- lonlabels, latlabels : optional
101- Whether to label longitudes and latitudes, and on which sides
102- of the map. There are four different options:
103-
104- 1. Boolean ``True``. Indicates the left side for latitudes,
105- bottom side for longitudes.
106- 2. A string or tuple of strings indicating the side names, e.g.
107- ``'left'`` for latitudes or ``'bottom'`` for longitudes.
99+ labels : bool, str, or sequence, default:
100+ Sets `lonlabels` and `latlabels` to the same value. To draw
101+ labels by default use e.g. ``pplt.rc['grid.labels'] = True``.
102+ lonlabels, latlabels, labels : str, bool, or sequence, :rc:`grid.labels`
103+ Whether to add non-inline longitude and latitude gridline labels, and on
104+ which sides of the map. Use the keyword `labels` to set both at once. The
105+ argument must conform to one of the following options:
106+
107+ 1. A boolean. ``True`` indicates the left side for latitudes, bottom
108+ side for longitudes, and ``False`` disables all labels.
109+ 2. A string or sequence of strings indicating the side names, e.g.
110+ ``'left'`` for latitudes or ``('top', 'bottom')`` for longitudes.
108111 3. A string indicating the side names with single characters, e.g.
109112 ``'lr'`` for latitudes or ``'bt'`` for longitudes.
110113 4. A boolean 2-tuple indicating whether to draw labels on the
115118 `~mpl_toolkits.basemap.Basemap.drawmeridians` and
116119 `~mpl_toolkits.basemap.Basemap.drawparallels` `labels` keyword.
117120
121+ loninline, latinline, inlinelabels : bool, default: :rc:`grid.inlinelabels`
122+ *For cartopy axes only.*
123+ Whether to add inline longitude and latitude gridline labels. Use
124+ the keyword `inlinelabels` to set both at once.
125+ rotatelabels : bool, default: :rc:`grid.rotatelabels`
126+ *For cartopy axes only.*
127+ Whether to rotate non-inline gridline labels so that they automatically
128+ follow the map boundary curvature.
129+ labelpad : unit-spec, default: :rc:`grid.labelpad`
130+ *For cartopy axes only.*
131+ The padding between non-inline gridline labels and the map boundary.
132+ %(units.pt)s
133+ dms : bool, default: :rc:`grid.dmslabels`
134+ *For cartopy axes only.*
135+ Whether the default locators and formatters should use "minutes" and "seconds" for
136+ gridline labels on small scales rather than decimal degrees. Setting this to
137+ ``False`` is equivalent to ``ax.format(lonlocator='deglon', latlocator='deglon')``
138+ and ``ax.format(lonformatter='deglon', latformatter='deglat')``.
118139lonformatter, latformatter : formatter-spec, optional
119140 Formatter used to style longitude and latitude gridline labels.
120- Passed to the `~proplot.constructor.Formatter` constructor.
121- Can be string, list of string, or `matplotlib.ticker.Formatter`
122- instance.
141+ Passed to the `~proplot.constructor.Formatter` constructor. Can
142+ be string, list of string, or `matplotlib.ticker.Formatter` instance.
123143
124144 For basemap or cartopy < 0.18, the defaults are ``'deglon'`` and
125145 ``'deglat'``, which correspond to `~proplot.ticker.SimpleFormatter`
126146 presets with degree symbols and cardinal direction suffixes.
127147 For cartopy >= 0.18, the defaults are ``'dmslon'`` and ``'dmslat'``,
128148 which uses cartopy's `~cartopy.mpl.ticker.LongitudeFormatter` and
129149 `~cartopy.mpl.ticker.LatitudeFormatter` formatters with ``dms=True``.
130- This formats gridlines that do not fall on whole degrees as "minutes"
131- and "seconds" rather than decimal degrees.
150+ This formats gridlines that do not fall on whole degrees as "minutes" and
151+ "seconds" rather than decimal degrees. Use ``dms=False`` to disable this .
132152lonformatter_kw, latformatter_kw : dict-like, optional
133153 Keyword arguments passed to the `matplotlib.ticker.Formatter` class.
134- loninline, latinline, inlinelabels : bool, default: :rc:`grid.inlinelabels`
135- *For cartopy axes only.*
136- Whether to draw inline longitude and latitude gridline labels. Setting to ``True``
137- also sets default values for `lonlabels`, `latlabels`, and `labels` to ``True``.
138- rotatelabels : bool, default: :rc:`grid.rotatelabels`
139- *For cartopy axes only.*
140- Whether to rotate longitude and latitude gridline labels.
141- labelpad : unit-spec, default: :rc:`grid.labelpad`
142- *For cartopy axes only.*
143- The padding between the map boundary and longitude and latitude gridline labels.
144- %(units.pt)s
145- dms : bool, default: :rc:`grid.dmslabels`
146- *For cartopy axes only.*
147- Specifies whether the default locators and formatters should use
148- "minutes" and "seconds" for gridline labels on small scales rather
149- than decimal degrees. Setting this to ``False`` is equivalent to
150- specifying ``ax.format(lonlocator='deglon', latlocator='deglon')``
151- and ``ax.format(lonformatter='deglon', latformatter='deglat')``.
152- nsteps : int, default: :rc:`grid.nsteps`
153- *For cartopy axes only.*
154- The number of interpolation steps used to draw gridlines.
155154land, ocean, coast, rivers, lakes, borders, innerborders : bool, optional
156155 Toggles various geographic features. These are actually the
157156 :rcraw:`land`, :rcraw:`ocean`, :rcraw:`coast`, :rcraw:`rivers`,
164163 :rcraw:`land.zorder`, use ``ax.format(landzorder=4)``.
165164reso : {'lo', 'med', 'hi', 'x-hi', 'xx-hi'}, optional
166165 *For cartopy axes only.*
167- The resolution of geographic features. For basemap axes, this must
168- be passed to `~proplot.constructor.Proj`.
166+ The resolution of geographic features. When basemap is the backend this
167+ must be passed to `~proplot.constructor.Proj` instead .
169168color : color-spec, default: :rc:`meta.color`
170- Color for the axes edge. Propagates to `labelcolor` unless specified
169+ The color for the axes edge. Propagates to `labelcolor` unless specified
171170 otherwise (similar to `proplot.axes.CartesianAxes.format`).
172171gridcolor : color-spec, default: :rc:`grid.color`
173- Color for the longitude and lagitude grid lines .
174- labelcolor, gridlabelcolor : color-spec, default: `color` or :rc:`grid.labelcolor`
175- Color for the longitude and latitude grid labels .
176- labelsize, gridlabelsize : unit-spec or str, default: :rc:`grid.labelsize`
177- Font size for the gridline labels.
172+ The color for the gridline labels .
173+ labelcolor : color-spec, default: `color` or :rc:`grid.labelcolor`
174+ The color for the gridline labels (`gridlabelcolor` is also allowed) .
175+ labelsize : unit-spec or str, default: :rc:`grid.labelsize`
176+ The font size for the gridline labels (`gridlabelsize` is also allowed) .
178177 %(units.pt)s
179- labelweight, gridlabelweight : str, default: :rc:`grid.labelweight`
180- Font weight for the gridline labels.
178+ labelweight : str, default: :rc:`grid.labelweight`
179+ The font weight for the gridline labels (`gridlabelweight` is also allowed) .
181180"""
182181docstring ._snippet_manager ['geo.format' ] = _format_docstring
183182
@@ -509,8 +508,9 @@ def _to_label_array(arg, lon=True):
509508 def format (
510509 self , * ,
511510 extent = None , round = None ,
512- lonlim = None , latlim = None , boundinglat = None , latmax = None ,
511+ lonlim = None , latlim = None , boundinglat = None ,
513512 longrid = None , latgrid = None , longridminor = None , latgridminor = None ,
513+ latmax = None , nsteps = None ,
514514 lonlocator = None , lonlines = None ,
515515 latlocator = None , latlines = None ,
516516 lonminorlocator = None , lonminorlines = None ,
@@ -521,10 +521,9 @@ def format(
521521 latminorlocator_kw = None , latminorlines_kw = None ,
522522 lonformatter = None , latformatter = None ,
523523 lonformatter_kw = None , latformatter_kw = None ,
524- labels = None , latlabels = None , lonlabels = None ,
525- loninline = None , latinline = None , inlinelabels = None , rotatelabels = None ,
524+ labels = None , latlabels = None , lonlabels = None , rotatelabels = None ,
525+ loninline = None , latinline = None , inlinelabels = None , dms = None ,
526526 labelpad = None , labelcolor = None , labelsize = None , labelweight = None ,
527- dms = None , nsteps = None ,
528527 ** kwargs ,
529528 ):
530529 """
0 commit comments