mpl_toolkits.axes_grid1.inset_locator.zoomed_inset_axes
- 
mpl_toolkits.axes_grid1.inset_locator.zoomed_inset_axes(parent_axes, zoom, loc='upper right', bbox_to_anchor=None, bbox_transform=None, axes_class=None, axes_kwargs=None, borderpad=0.5)[source] - 
Create an anchored inset axes by scaling a parent axes. For usage, also see the examples.
Parameters: - 
parent_axes : matplotlib.axes.Axes - 
Axes to place the inset axes.
 - 
zoom : float - 
Scaling factor of the data axes. zoom > 1 will enlargen the coordinates (i.e., "zoomed in"), while zoom < 1 will shrink the coordinates (i.e., "zoomed out").
 - 
loc : int or string, optional, default to 1 - 
Location to place the inset axes. The valid locations are:
'upper right' : 1, 'upper left' : 2, 'lower left' : 3, 'lower right' : 4, 'right' : 5, 'center left' : 6, 'center right' : 7, 'lower center' : 8, 'upper center' : 9, 'center' : 10
 - 
bbox_to_anchor : tuple or matplotlib.transforms.BboxBase, optional - 
Bbox that the inset axes will be anchored to. If None, parent_axes.bbox is used. If a tuple, can be either [left, bottom, width, height], or [left, bottom]. If the kwargs width and/or height are specified in relative units, the 2-tuple [left, bottom] cannot be used. Note that the units of the bounding box are determined through the transform in use. When using bbox_to_anchor it almost always makes sense to also specify a bbox_transform. This might often be the axes transform parent_axes.transAxes.
 - 
bbox_transform : matplotlib.transforms.Transform, optional - 
Transformation for the bbox that contains the inset axes. If None, a
transforms.IdentityTransformis used (i.e. pixel coordinates). This is useful when not providing any argument to bbox_to_anchor. When using bbox_to_anchor it almost always makes sense to also specify a bbox_transform. This might often be the axes transform parent_axes.transAxes. Inversely, when specifying the axes- or figure-transform here, be aware that not specifying bbox_to_anchor will use parent_axes.bbox, the units of which are in display (pixel) coordinates. - 
axes_class : matplotlib.axes.Axes type, optional - 
If specified, the inset axes created will be created with this class's constructor.
 - 
axes_kwargs : dict, optional - 
Keyworded arguments to pass to the constructor of the inset axes. Valid arguments include:
Property Description adjustable{'box', 'datalim'} agg_filtera filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array alphafloat anchor2-tuple of floats or {'C', 'SW', 'S', 'SE', ...} animatedbool aspect{'auto', 'equal'} or num autoscale_onbool autoscalex_onbool autoscaley_onbool axes_locatorCallable[[Axes, Renderer], Bbox] axisbelowbool or 'line' clip_boxBboxclip_onbool clip_path[( Path,Transform) |Patch| None]containscallable facecolorcolor fccolor figureFigureframe_onbool gidstr in_layoutbool labelobject navigatebool navigate_modeunknown path_effectsAbstractPathEffectpickerNone or bool or float or callable position[left, bottom, width, height] or Bboxrasterization_zorderfloat or None rasterizedbool or None sketch_params(scale: float, length: float, randomness: float) snapbool or None titlestr transformTransformurlstr visiblebool xboundunknown xlabelstr xlim(left: float, right: float) xmarginfloat greater than -0.5 xscale{"linear", "log", "symlog", "logit", ...} xticklabelsList[str] xtickslist yboundunknown ylabelstr ylim(bottom: float, top: float) ymarginfloat greater than -0.5 yscale{"linear", "log", "symlog", "logit", ...} yticklabelsList[str] ytickslist zorderfloat  - 
borderpad : float, optional - 
Padding between inset axes and the bbox_to_anchor. Defaults to 0.5. The units are axes font size, i.e. for a default font size of 10 points borderpad = 0.5 is equivalent to a padding of 5 points.
 
Returns: - 
inset_axes : axes_class - 
Inset axes object created.
 
 - 
 
Examples using mpl_toolkits.axes_grid1.inset_locator.zoomed_inset_axes
 
    © 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
    https://matplotlib.org/3.1.1/api/_as_gen/mpl_toolkits.axes_grid1.inset_locator.zoomed_inset_axes.html