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.axes »

Classe « SubplotSpec »

Informations générales

Héritage

builtins.object
    SubplotSpec

Définition

class SubplotSpec(builtins.object):

Description [extrait de SubplotSpec.__doc__]

    Specifies the location of a subplot in a `GridSpec`.

    .. note::

        Likely, you'll never instantiate a `SubplotSpec` yourself. Instead you
        will typically obtain one from a `GridSpec` using item-access.

    Parameters
    ----------
    gridspec : `~matplotlib.gridspec.GridSpec`
        The GridSpec, which the subplot is referencing.
    num1, num2 : int
        The subplot will occupy the num1-th cell of the given
        gridspec.  If num2 is provided, the subplot will span between
        num1-th cell and num2-th cell *inclusive*.

        The index starts from 0.
    

Constructeur(s)

Signature du constructeur Description
__init__(self, gridspec, num1, num2=None)

Liste des propriétés

Nom de la propriétéDescription
colspanThe columns spanned by this subplot, as a `range` object. [extrait de __doc__]
num2
rowspanThe rows spanned by this subplot, as a `range` object. [extrait de __doc__]

Liste des opérateurs

Signature de l'opérateur Description
__eq__(self, other)

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

__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
__getstate__(self)
__hash__(self)
__repr__(self)
get_geometry(self)
get_gridspec(self)
get_position(self, figure, return_all=<deprecated parameter>)
get_rows_columns(self) [*Deprecated*] Return the subplot row and column numbers as a tuple [extrait de get_rows_columns.__doc__]
get_topmost_subplotspec(self)
is_first_col(self)
is_first_row(self)
is_last_col(self)
is_last_row(self)
subgridspec(self, nrows, ncols, **kwargs)

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

__delattr__, __dir__, __format__, __getattribute__, __init_subclass__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__