Axes.inset¶
- Axes.inset(*args, **kwargs)[source]¶
Return an inset
CartesianAxes. This is similar to the builtininset_axesbut includes some extra options.- Parameters
bounds (
4-tupleoffloat) – The (left, bottom, width, height) coordinates for the axes.transform (
{'data', 'axes', 'figure'}orTransform, optional) – The transform used to interpret the bounds. Can be aTransforminstance or a string representing thetransData,transAxes, ortransFiguretransforms. Default is'axes', i.e.boundsis 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), aCartesianAxesis created. If'polar', aPolarAxesis created. Otherwise, the argument is interpreted byProj, and the result is used to make aGeoAxes(in this case the argument can be acartopy.crs.Projectioninstance, aBasemapinstance, or a projection name listed in this table).proj_kw, projection_kw (dict-like, optional) – Keyword arguments passed to
Basemapor cartopyProjectionclasses on instantiation.basemap (
boolor dict-like, optional) – Whether to useBasemaporProjectionfor 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 lines will automatically adjust whenever the parent axes or inset axes limits are changed. Default isTrue.zoom_kw (
dict, optional) – Passed toindicate_inset_zoom.
- Other Parameters
**kwargs – Passed to
CartesianAxes.