Axes.inset_axes(bounds, *, transform=None, zorder=4, zoom=True, zoom_kw=None, **kwargs)[source]

Like the builtin inset_axes method, but draws an inset XYAxes axes and adds some options.

  • 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 interpret bounds. Can be a Transform object or a string representing the transData, transAxes, or transFigure transforms. Default is 'axes', i.e. bounds is in axes-relative coordinates.

  • 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 is True.

  • zoom_kw (dict, optional) – Passed to indicate_inset_zoom.

Other Parameters

**kwargs – Passed to XYAxes.