SubplotGrid.inset_axes¶
- SubplotGrid.inset_axes(*args, **kwargs)¶
Add an inset axes for every axes in the grid. This is similar to
matplotlib.axes.Axes.inset_axes
.- Parameters
bounds (
4-tuple
offloat
) – The (left, bottom, width, height) coordinates for the axes.transform (
{'data', 'axes', 'figure'}
orTransform
, optional) – The transform used to interpret the bounds. Can be aTransform
instance or a string representing thetransData
,transAxes
, ortransFigure
transforms. Default is'axes'
, i.e.bounds
is in axes-relative coordinates. Default is to use the same projection as the current axes.proj, projection (
str
,cartopy.crs.Projection
, orBasemap
, optional) – The map projection specification(s). If'cart'
or'cartesian'
(the default), aCartesianAxes
is created. If'polar'
, aPolarAxes
is created. Otherwise, the argument is interpreted byProj
, and the result is used to make aGeoAxes
(in this case the argument can be acartopy.crs.Projection
instance, aBasemap
instance, or a projection name listed in this table).proj_kw, projection_kw (dict-like, optional) – Keyword arguments passed to
Basemap
or cartopyProjection
classes on instantiation.basemap (
bool
or dict-like, optional) – Whether to useBasemap
orProjection
for map projections. Default isrc.basemap
=False
.zorder (
float
, optional) – The zorder of the axes. Should be greater than the zorder of elements in the parent axes. Default is4
.zoom (
bool
, optional) – Whether to draw lines indicating the inset zoom usingindicate_inset_zoom
. The line positions will automatically adjust when the parent or inset axes limits change. Default isTrue
only if both axes areCartesianAxes
.zoom_kw (
dict
, optional) – Passed toindicate_inset_zoom
.
- Other Parameters
**kwargs – Passed to
proplot.axes.Axes
.- Returns
proplot.axes.Axes
– The inset axes.
See also
Axes.indicate_inset_zoom
,matplotlib.axes.Axes.inset_axes
,matplotlib.axes.Axes.indicate_inset
,matplotlib.axes.Axes.indicate_inset_zoom