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 ? Coder avec une
Intelligence Artificielle
Voir le programme détaillé
Module « matplotlib.artist »

Classe « BboxBase »

Informations générales

Héritage

builtins.object
    TransformNode
        BboxBase

Définition

class BboxBase(TransformNode):

help(BboxBase)

The base class of all bounding boxes.

This class is immutable; `Bbox` is a mutable subclass.

The canonical representation is as two points, with no
restrictions on their ordering.  Convenience properties are
provided to get the left, bottom, right and top edges and width
and height, but these are not stored explicitly.

Constructeur(s)

Signature du constructeur Description
__init__(self, shorthand_name=None)

Liste des attributs statiques

Nom de l'attribut Valeur
coefs{'C': (0.5, 0.5), 'SW': (0, 0), 'S': (0.5, 0), 'SE': (1.0, 0), 'E': (1.0, 0.5), 'NE': (1.0, 1.0), 'N': (0.5, 1.0), 'NW': (0, 1.0), 'W': (0, 0.5)}
is_affineTrue
is_bboxTrue
pass_throughFalse

Liste des propriétés

Nom de la propriétéDescription
boundsReturn (:attr:`x0`, :attr:`y0`, :attr:`width`, :attr:`height`). [extrait de bounds.__doc__]
extentsReturn (:attr:`x0`, :attr:`y0`, :attr:`x1`, :attr:`y1`). [extrait de extents.__doc__]
heightThe (signed) height of the bounding box. [extrait de height.__doc__]
intervalx
intervaly
maxThe top-right corner of the bounding box. [extrait de max.__doc__]
minThe bottom-left corner of the bounding box. [extrait de min.__doc__]
p0
p1
sizeThe (signed) width and height of the bounding box. [extrait de size.__doc__]
widthThe (signed) width of the bounding box. [extrait de width.__doc__]
x0
x1
xmaxThe right edge of the bounding box. [extrait de xmax.__doc__]
xminThe left edge of the bounding box. [extrait de xmin.__doc__]
y0
y1
ymaxThe top edge of the bounding box. [extrait de ymax.__doc__]
yminThe bottom edge of the bounding box. [extrait de ymin.__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
__array__(self, *args, **kwargs)
anchored(self, c, container)
contains(self, x, y)
containsx(self, x)
containsy(self, y)
corners(self)
count_contains(self, vertices)
count_overlaps(self, bboxes)
expanded(self, sw, sh)
frozen(self)
fully_contains(self, x, y)
fully_containsx(self, x)
fully_containsy(self, y)
fully_overlaps(self, other)
get_points(self)
intersection(bbox1, bbox2)
overlaps(self, other)
padded(self, w_pad, h_pad=None)
rotated(self, radians)
shrunk(self, mx, my)
shrunk_to_aspect(self, box_aspect, container=None, fig_aspect=1.0)
splitx(self, *args)
splity(self, *args)
transformed(self, transform)
translated(self, tx, ty) Construct a `Bbox` by translating this one by *tx* and *ty*. [extrait de translated.__doc__]
union(bboxes) Return a `Bbox` that contains all of the given *bboxes*. [extrait de union.__doc__]

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

__copy__, __getstate__, __init_subclass__, __setstate__, __subclasshook__, invalidate, set_children

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

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

Vous êtes un professionnel et vous avez besoin d'une formation ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé