matplotlib.axes.Axes.indicate_inset_zoom#

Axes.indicate_inset_zoom(inset_ax,**kwargs)[source]#

Add an inset indicator rectangle to the Axes based on the axislimits for aninset_ax and draw connectors betweeninset_axand the rectangle.

Parameters:
inset_axAxes

Inset Axes to draw connecting lines to. Two lines aredrawn connecting the indicator box to the inset Axes on cornerschosen so as to not overlap with the indicator box.

**kwargs

Other keyword arguments are passed on toAxes.indicate_inset

Returns:
inset_indicatorinset.InsetIndicator

An artist which contains

inset_indicator.rectangleRectangle

The indicator frame.

inset_indicator.connectors4-tuple ofpatches.ConnectionPatch

The four connector lines connecting to (lower_left, upper_left,lower_right upper_right) corners ofinset_ax. Two lines areset with visibility toFalse, but the user can set thevisibility to True if the automatic choice is not deemed correct.

Changed in version 3.10:Previously the rectangle and connectors tuple were returned.

Warning

This method is experimental as of 3.0, and the API may change.

Examples usingmatplotlib.axes.Axes.indicate_inset_zoom#

Streamplot

Streamplot

Zoom region inset Axes

Zoom region inset Axes