Axes.
inset_axes
(bounds, *, transform=None, zorder=5, **kwargs)[source]¶Add a child inset axes to this existing axes.
Parameters: |
|
---|---|
Returns: |
|
Warning
This method is experimental as of 3.0, and the API may change.
Examples
This example makes two inset axes, the first is in axes-relative coordinates, and the second in data-coordinates:
fig, ax = plt.suplots()
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)
matplotlib.axes.Axes.inset_axes
¶