matplotlib 3.5.1

ParametersReturnsWarningsBackRef
inset_axes(self, bounds, *, transform=None, zorder=5, **kwargs)

Parameters

bounds : [x0, y0, width, height]

Lower-left corner of inset Axes, and its width and height.

transform : `.Transform`

Defaults to :None:None:`ax.transAxes`, i.e. the units of rect are in Axes-relative coordinates.

zorder : number

Defaults to 5 (same as .Axes.legend ). Adjust higher or lower to change whether it is above or below data plotted on the parent Axes.

**kwargs :

Other keyword arguments are passed on to the child .Axes .

Returns

ax

The created :None:None:`~.axes.Axes` instance.

Add a child inset Axes to this existing Axes.

Warnings

Examples

fig, ax = plt.subplots() ax.plot(range(10)) axin1 = ax.inset_axes([0.8, 0.1, 0.15, 0.15]) axin2 = ax.inset_axes( [5, 7, 2.3, 2.3], transform=ax.transData)

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

matplotlib.axes._axes.Axes.indicate_inset matplotlib.axes._base._TransformedBoundsLocator

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/axes/_axes.py#312
type: <class 'function'>
Commit: