Axes.inset_axes¶
- Axes.inset_axes(bounds, transform=None, zorder=4, zoom=None, zoom_kw=None, proj=None, proj_kw=None, projection=None, projection_kw=None, basemap=None, **kwargs)[source]¶
Return an inset
CartesianAxes
. This is similar to the builtininset_axes
but includes some extra options.- Parameters
bounds (list of float) – The bounds for the inset axes, listed as
(x, y, width, height)
.transform ({‘data’, ‘axes’, ‘figure’} or
Transform
, optional) – The transform used to interpretbounds
. Can be aTransform
object or a string representing thetransData
,transAxes
, ortransFigure
transforms. Default is'axes'
, i.e.bounds
is in axes-relative coordinates.proj, projection (str,
cartopy.crs.Projection
, orBasemap
) – The map projection specification(s). If not provided, the inset axes projection is identical to the current axes projection. If'cartesian'
, aCartesianAxes
inset is created. If'polar'
, aPolarAxes
inset 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 use
Basemap
orProjection
for map projections. Default isFalse
.zorder (float, optional) – The zorder of the axes, should be greater than the zorder of elements in the parent axes. Default is
4
.zoom (bool, optional) – Whether to draw lines indicating the inset zoom using
indicate_inset_zoom
. The lines will automatically adjust whenever the parent axes or inset axes limits are changed. Default isTrue
.zoom_kw (dict, optional) – Passed to
indicate_inset_zoom
.
- Other Parameters
**kwargs – Passed to
CartesianAxes
.