ProjAxes.format¶
-
ProjAxes.
format
(*, lonlim=None, latlim=None, boundinglat=None, grid=None, lonlines=None, lonlocator=None, latlines=None, latlocator=None, latmax=None, labels=None, latlabels=None, lonlabels=None, patch_kw=None, **kwargs)[source]¶ Modify the meridian and parallel labels, longitude and latitude map limits, geographic features, and more. Unknown keyword arguments are passed to
Axes.format
andcontext
.- Parameters
lonlim, latlim ((float, float), optional) – Longitude and latitude limits of projection, applied with
set_extent
. For cartopy axes only.boundinglat (float, optional) – The edge latitude for the circle bounding North Pole and South Pole-centered projections. For cartopy axes only.
grid (bool, optional) – Toggles meridian and parallel gridlines on and off. Default is
rc.geogrid
=True
.lonlines, latlines (float or list of float, optional) – If float, indicates the spacing of meridian and parallel gridlines. Otherwise, must be a list of floats indicating specific meridian and parallel gridlines to draw.
lonlocator, latlocator (optional) – Aliases for
lonlines
,latlines
.latmax (float, optional) – The maximum absolute latitude for meridian gridlines. Default is
rc[‘geogrid.latmax’]
=90
.labels (bool, optional) – Toggles meridian and parallel gridline labels on and off. Default is
rc[‘geogrid.labels’]
=False
.lonlabels, latlabels – Whether to label longitudes and latitudes, and on which sides of the map. There are four different options:
Boolean
True
. Indicates left side for latitudes, bottom for longitudes.A string, e.g.
'lr'
or'bt'
.A boolean
(left,right)
tuple for longitudes,(bottom,top)
for latitudes.A boolean
(left,right,bottom,top)
tuple as in thedrawmeridians
anddrawparallels
methods.
land, ocean, coast, rivers, lakes, borders, innerborders (bool, optional) – Toggles various geographic features. These are actually the
rc.land
,rc.ocean
,rc.coast
,rc.rivers
,rc.lakes
,rc.borders
, andrc.innerborders
settings passed tocontext
. The style can be modified by passing additional settings, e.g.rc.landcolor
.patch_kw (dict-like, optional) – Keyword arguments used to update the background patch object. You can use this, for example, to set background hatching with
patch_kw={'hatch':'xxx'}
.rc_kw (dict, optional) – Dictionary containing
rc
settings applied to this axes usingcontext
.**kwargs – Passed to
Axes.format
or passed tocontext
and used to update axesrc
settings. For example,axestitlesize=15
modifies therc[‘axes.titlesize’]
setting.
See also
Axes.format
,None()