| [ Web Proxy ] |
| Viewing: https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.indicate_inset.html | [Back] [Original] |
Add an inset indicator to the Axes. This is a rectangle on the plot
at the position indicated by bounds that optionally has lines that
connect the rectangle to an inset Axes (Axes.inset_axes).
Lower-left corner of rectangle to be marked, and its width and height. If not set, the bounds will be calculated from the data limits of inset_ax, which must be supplied.
Axes, optionalAn optional inset Axes to draw connecting lines to. Two lines are drawn connecting the indicator box to the inset Axes on corners chosen so as to not overlap with the indicator box.
TransformTransform for the rectangle coordinates. Defaults to
ax.transData, i.e. the units of rect are in the Axes' data
coordinates.
Facecolor of the rectangle.
Color of the rectangle and color of the connecting lines.
Transparency of the rectangle and connector lines. If not
None, this overrides any alpha value included in the
facecolor and edgecolor parameters.
Drawing order of the rectangle and connector lines. The default, 4.99, is just below the default level of inset Axes.
Other keyword arguments are passed on to the Rectangle patch:
Property |
Description |
|---|---|
a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array and two offsets from the bottom left corner of the image |
|
float or None |
|
unknown |
|
bool |
|
|
bool or None |
(left, bottom, width, height) |
|
|
|
|
|
bool |
|
Patch or (Path, Transform) or None |
|
color or None |
|
color or None |
|
color or None |
|
bool |
|
str |
|
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'} |
|
unknown |
|
color or 'edge' or None |
|
unknown |
|
bool |
|
|
|
object |
|
{'-', '--', '-.', ':', '', ...} or (offset, on-off-seq) |
|
float or None |
|
bool |
|
list of |
|
None or bool or float or callable |
|
bool |
|
(scale: float, length: float, randomness: float) |
|
bool or None |
|
str |
|
bool |
|
unknown |
|
unknown |
|
(float, float) |
|
unknown |
|
float |
inset.InsetIndicatorAn artist which contains
RectangleThe indicator frame.
patches.ConnectionPatchThe four connector lines connecting to (lower_left, upper_left, lower_right upper_right) corners of inset_ax. Two lines are set with visibility to False, but the user can set the visibility 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.
| Web Proxy Viewer | New URL | Original Page |