Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? RAG (Retrieval-Augmented Generation)
et Fine Tuning d'un LLM
Voir le programme détaillé
Classe « Axes »

Méthode matplotlib.pyplot.Axes.indicate_inset

Signature de la méthode indicate_inset

def indicate_inset(self, bounds=None, inset_ax=None, *, transform=None, facecolor='none', edgecolor='0.5', alpha=0.5, zorder=None, **kwargs) 

Description

help(Axes.indicate_inset)

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`).

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

Parameters
----------
bounds : [x0, y0, width, height], optional
    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.

inset_ax : `.Axes`, optional
    An 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.

transform : `.Transform`
    Transform for the rectangle coordinates. Defaults to
    ``ax.transAxes``, i.e. the units of *rect* are in Axes-relative
    coordinates.

facecolor : :mpltype:`color`, default: 'none'
    Facecolor of the rectangle.

edgecolor : :mpltype:`color`, default: '0.5'
    Color of the rectangle and color of the connecting lines.

alpha : float or None, default: 0.5
    Transparency of the rectangle and connector lines.  If not
    ``None``, this overrides any alpha value included in the
    *facecolor* and *edgecolor* parameters.

zorder : float, default: 4.99
    Drawing order of the rectangle and connector lines.  The default,
    4.99, is just below the default level of inset Axes.

**kwargs
    Other keyword arguments are passed on to the `.Rectangle` patch:

    Properties:
    agg_filter: 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
    alpha: scalar or None
    angle: unknown
    animated: bool
    antialiased or aa: bool or None
    bounds: (left, bottom, width, height)
    capstyle: `.CapStyle` or {'butt', 'projecting', 'round'}
    clip_box: `~matplotlib.transforms.BboxBase` or None
    clip_on: bool
    clip_path: Patch or (Path, Transform) or None
    color: :mpltype:`color`
    edgecolor or ec: :mpltype:`color` or None
    facecolor or fc: :mpltype:`color` or None
    figure: `~matplotlib.figure.Figure` or `~matplotlib.figure.SubFigure`
    fill: bool
    gid: str
    hatch: {'/', '\\', '|', '-', '+', 'x', 'o', 'O', '.', '*'}
    hatch_linewidth: unknown
    height: unknown
    in_layout: bool
    joinstyle: `.JoinStyle` or {'miter', 'round', 'bevel'}
    label: object
    linestyle or ls: {'-', '--', '-.', ':', '', (offset, on-off-seq), ...}
    linewidth or lw: float or None
    mouseover: bool
    path_effects: list of `.AbstractPathEffect`
    picker: None or bool or float or callable
    rasterized: bool
    sketch_params: (scale: float, length: float, randomness: float)
    snap: bool or None
    transform: `~matplotlib.transforms.Transform`
    url: str
    visible: bool
    width: unknown
    x: unknown
    xy: (float, float)
    y: unknown
    zorder: float

Returns
-------
inset_indicator : `.inset.InsetIndicator`
    An artist which contains

    inset_indicator.rectangle : `.Rectangle`
        The indicator frame.

    inset_indicator.connectors : 4-tuple of `.patches.ConnectionPatch`
        The 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.

    .. versionchanged:: 3.10
        Previously the rectangle and connectors tuple were returned.


Vous êtes un professionnel et vous avez besoin d'une formation ? Sensibilisation à
l'Intelligence Artificielle
Voir le programme détaillé