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 ? Sensibilisation à
l'Intelligence Artificielle
Voir le programme détaillé
Classe « FigureBase »

Méthode matplotlib.pyplot.FigureBase.subfigures

Signature de la méthode subfigures

def subfigures(self, nrows=1, ncols=1, squeeze=True, wspace=None, hspace=None, width_ratios=None, height_ratios=None, **kwargs) 

Description

help(FigureBase.subfigures)

Add a set of subfigures to this figure or subfigure.

A subfigure has the same artist methods as a figure, and is logically
the same as a figure, but cannot print itself.
See :doc:`/gallery/subplots_axes_and_figures/subfigures`.

.. versionchanged:: 3.10
    subfigures are now added in row-major order.

Parameters
----------
nrows, ncols : int, default: 1
    Number of rows/columns of the subfigure grid.

squeeze : bool, default: True
    If True, extra dimensions are squeezed out from the returned
    array of subfigures.

wspace, hspace : float, default: None
    The amount of width/height reserved for space between subfigures,
    expressed as a fraction of the average subfigure width/height.
    If not given, the values will be inferred from rcParams if using
    constrained layout (see `~.ConstrainedLayoutEngine`), or zero if
    not using a layout engine.

width_ratios : array-like of length *ncols*, optional
    Defines the relative widths of the columns. Each column gets a
    relative width of ``width_ratios[i] / sum(width_ratios)``.
    If not given, all columns will have the same width.

height_ratios : array-like of length *nrows*, optional
    Defines the relative heights of the rows. Each row gets a
    relative height of ``height_ratios[i] / sum(height_ratios)``.
    If not given, all rows will have the same height.


Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les fondamentaux
Voir le programme détaillé