Vous êtes un professionnel et vous avez besoin d'une formation ?
Mise en oeuvre d'IHM avec Qt et PySide6
Voir le programme détaillé
Module « matplotlib.pyplot »
Classe « Rectangle »
Informations générales
Héritage
builtins.object
Artist
Patch
Rectangle
Définition
class Rectangle (Patch):
help(Rectangle )
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 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)
Liste des attributs statiques
Liste des propriétés
axes The `~.axes.Axes` instance the artist resides in, or *None*. [extrait de axes.__doc__ ]
figure The (Sub)Figure that the artist is on. For more control, use the `get_figure` method. [extrait de figure.__doc__ ]
fill Return whether the patch is filled. [extrait de fill.__doc__ ]
mouseover
rotation_point The rotation point of the patch. [extrait de rotation_point.__doc__ ]
stale
sticky_edges
xy Return the left and bottom coords of the rectangle as a tuple. [extrait de xy.__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
__str__(self)
get_angle(self)
Get the rotation angle in degrees. [extrait de get_angle.__doc__ ]
get_bbox(self)
Return the `.Bbox`. [extrait de get_bbox.__doc__ ]
get_center(self)
Return the centre of the rectangle. [extrait de get_center.__doc__ ]
get_corners(self)
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(self, *, agg_filter=<UNSET>, alpha=<UNSET>, angle=<UNSET>, animated=<UNSET>, antialiased=<UNSET>, bounds=<UNSET>, capstyle=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, color=<UNSET>, edgecolor=<UNSET>, facecolor=<UNSET>, fill=<UNSET>, gid=<UNSET>, hatch=<UNSET>, hatch_linewidth=<UNSET>, height=<UNSET>, in_layout=<UNSET>, joinstyle=<UNSET>, label=<UNSET>, linestyle=<UNSET>, linewidth=<UNSET>, mouseover=<UNSET>, path_effects=<UNSET>, picker=<UNSET>, rasterized=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, transform=<UNSET>, url=<UNSET>, visible=<UNSET>, width=<UNSET>, x=<UNSET>, xy=<UNSET>, y=<UNSET>, zorder=<UNSET>)
Set multiple properties at once. [extrait de set.__doc__ ]
set_angle(self, angle)
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
__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_hatch_linewidth, 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_hatch_linewidth, set_joinstyle, set_linestyle, set_linewidth, set_ls, set_lw, update_from
Méthodes héritées de la classe Artist
__getstate__ ,
__init_subclass__ ,
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_cursor_data ,
get_figure ,
get_gid ,
get_in_layout ,
get_label ,
get_mouseover ,
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_agg_filter ,
set_animated ,
set_clip_box ,
set_clip_on ,
set_clip_path ,
set_figure ,
set_gid ,
set_in_layout ,
set_label ,
set_mouseover ,
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__ ,
__getstate__ ,
__hash__ ,
__init_subclass__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__
Vous êtes un professionnel et vous avez besoin d'une formation ?
Programmation Python Les compléments
Voir le programme détaillé
2025 © SARL Infini Software - Tous droits réservés
Mentions légales
Les informations présentes dans ce site vous sont fournies dans le but de vous aider à acquérir les compétences nécessaires à
l'utilisation des langages ou des technologies considérés. Infini Software ne pourra nullement être tenu responsable de l'utilisation
des informations présentes dans ce site.
De plus, si vous remarquez des erreurs ou des oublis dans ce document, n'hésitez surtout pas à nous le signaler en envoyant un mail
à l'adresse : .
Les autres marques et les noms de produits cités dans ces documents sont la propriété de leurs éditeurs respectifs.
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 :