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 :

Module « matplotlib.pyplot »

Classe « Rectangle »

Informations générales

Héritage

builtins.object
    Artist
        Patch
            Rectangle

Définition

class Rectangle(Patch):

Description [extrait de Rectangle.__doc__]

    A rectangle defined via an anchor point *xy* and its *width* and *height*.

    The rectangle extends from ``xy[0]`` to ``xy[0] + width`` in x-direction
    and from ``xy[1]`` to ``xy[1] + height`` in y-direction. ::

      :                +------------------+
      :                |                  |
      :              height               |
      :                |                  |
      :               (xy)---- width -----+

    One may picture *xy* as the bottom left corner, but which corner *xy* is
    actually depends on the the direction of the axis and the sign of *width*
    and *height*; e.g. *xy* would be the bottom right corner if the x-axis
    was inverted or if *width* was negative.
    

Constructeur(s)

Signature du constructeur Description
__init__(self, xy, width, height, angle=0.0, **kwargs) Parameters [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
validCap('butt', 'projecting', 'round')
validJoin('miter', 'round', 'bevel')
zorder1

Liste des propriétés

Nom de la propriétéDescription
axesThe `~.axes.Axes` instance the artist resides in, or *None*. [extrait de __doc__]
fillReturn whether the patch is filled. [extrait de __doc__]
mouseover
stale
sticky_edges
xyReturn the left and bottom coords of the rectangle as a tuple. [extrait de __doc__]

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__str__(self)
get_bbox(self) Return the `.Bbox`. [extrait de get_bbox.__doc__]
get_height(self) Return the height of the rectangle. [extrait de get_height.__doc__]
get_patch_transform(self)
get_path(self) Return the vertices of the rectangle. [extrait de get_path.__doc__]
get_width(self) Return the width of the rectangle. [extrait de get_width.__doc__]
get_x(self) Return the left coordinate of the rectangle. [extrait de get_x.__doc__]
get_xy(self) Return the left and bottom coords of the rectangle as a tuple. [extrait de get_xy.__doc__]
get_y(self) Return the bottom coordinate of the rectangle. [extrait de get_y.__doc__]
set_bounds(self, *args)
set_height(self, h) Set the height of the rectangle. [extrait de set_height.__doc__]
set_width(self, w) Set the width of the rectangle. [extrait de set_width.__doc__]
set_x(self, x) Set the left coordinate of the rectangle. [extrait de set_x.__doc__]
set_xy(self, xy)
set_y(self, y) Set the bottom coordinate of the rectangle. [extrait de set_y.__doc__]

Méthodes héritées de la classe Patch

__init_subclass__, __subclasshook__, contains, contains_point, contains_points, draw, get_aa, get_antialiased, get_capstyle, get_data_transform, get_ec, get_edgecolor, get_extents, get_facecolor, get_fc, get_fill, get_hatch, get_joinstyle, get_linestyle, get_linewidth, get_ls, get_lw, get_transform, get_verts, get_window_extent, set_aa, set_alpha, set_antialiased, set_capstyle, set_color, set_ec, set_edgecolor, set_facecolor, set_fc, set_fill, set_hatch, set_joinstyle, set_linestyle, set_linewidth, set_ls, set_lw, update_from

Méthodes héritées de la classe Artist

__getstate__, add_callback, convert_xunits, convert_yunits, findobj, format_cursor_data, get_agg_filter, get_alpha, get_animated, get_children, get_clip_box, get_clip_on, get_clip_path, get_contains, get_cursor_data, get_figure, get_gid, get_in_layout, get_label, get_path_effects, get_picker, get_rasterized, get_sketch_params, get_snap, get_tightbbox, get_transformed_clip_path_and_affine, get_url, get_visible, get_zorder, have_units, is_transform_set, pchanged, pick, pickable, properties, remove, remove_callback, set, set_agg_filter, set_animated, set_clip_box, set_clip_on, set_clip_path, set_contains, set_figure, set_gid, set_in_layout, set_label, set_path_effects, set_picker, set_rasterized, set_sketch_params, set_snap, set_transform, set_url, set_visible, set_zorder, update

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__