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 ? Programmation Python
Les compléments
Voir le programme détaillé
Module « matplotlib.pyplot »

Classe « Figure »

Informations générales

Héritage

builtins.object
    Artist
        FigureBase
            Figure

Définition

class Figure(FigureBase):

help(Figure)

The top level container for all the plot elements.

See `matplotlib.figure` for an index of class methods.

Attributes
----------
patch
    The `.Rectangle` instance representing the figure background patch.

suppressComposite
    For multiple images, the figure will make composite images
    depending on the renderer option_image_nocomposite function.  If
    *suppressComposite* is a boolean, this will override the renderer.

Constructeur(s)

Signature du constructeur Description
__init__(self, figsize=None, dpi=None, *, facecolor=None, edgecolor=None, linewidth=0.0, frameon=None, subplotpars=None, tight_layout=None, constrained_layout=None, layout=None, **kwargs) Parameters [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
zorder0

Liste des propriétés

Nom de la propriétéDescription
axes
dpiThe resolution in dots per inch. [extrait de dpi.__doc__]
figureThe root `Figure`. To get the parent of a `SubFigure`, use the `get_figure` method. [extrait de figure.__doc__]
frameon
mouseover
numberThe figure id, used to identify figures in `.pyplot`. [extrait de number.__doc__]
stale
sticky_edges

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
__getstate__(self)
__repr__(self)
__setstate__(self, state)
__str__(self)
add_axobserver(self, func) Whenever the Axes state change, ``func(self)`` will be called. [extrait de add_axobserver.__doc__]
clear(self, keep_observers=False)
draw(self, renderer)
draw_artist(self, a)
draw_without_rendering(self)
figimage(self, X, xo=0, yo=0, alpha=None, norm=None, cmap=None, vmin=None, vmax=None, origin=None, resize=False, *, colorizer=None, **kwargs) Add a non-resampled image to the figure. [extrait de figimage.__doc__]
get_axes(self)
get_constrained_layout(self)
get_constrained_layout_pads(self, relative=False) [*Deprecated*] Get padding for ``constrained_layout``. [extrait de get_constrained_layout_pads.__doc__]
get_dpi(self) Return the resolution in dots per inch as a float. [extrait de get_dpi.__doc__]
get_figheight(self) Return the figure height in inches. [extrait de get_figheight.__doc__]
get_figwidth(self) Return the figure width in inches. [extrait de get_figwidth.__doc__]
get_layout_engine(self)
get_size_inches(self)
get_tight_layout(self) Return whether `.Figure.tight_layout` is called when drawing. [extrait de get_tight_layout.__doc__]
ginput(self, n=1, timeout=30, show_clicks=True, mouse_add=<MouseButton.LEFT: 1>, mouse_pop=<MouseButton.RIGHT: 3>, mouse_stop=<MouseButton.MIDDLE: 2>)
pick(self, mouseevent)
savefig(self, fname, *, transparent=None, **kwargs)
set(self, *, agg_filter=<UNSET>, alpha=<UNSET>, animated=<UNSET>, canvas=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, constrained_layout=<UNSET>, constrained_layout_pads=<UNSET>, dpi=<UNSET>, edgecolor=<UNSET>, facecolor=<UNSET>, figheight=<UNSET>, figwidth=<UNSET>, frameon=<UNSET>, gid=<UNSET>, in_layout=<UNSET>, label=<UNSET>, layout_engine=<UNSET>, linewidth=<UNSET>, mouseover=<UNSET>, path_effects=<UNSET>, picker=<UNSET>, rasterized=<UNSET>, size_inches=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, tight_layout=<UNSET>, transform=<UNSET>, url=<UNSET>, visible=<UNSET>, zorder=<UNSET>) Set multiple properties at once. [extrait de set.__doc__]
set_canvas(self, canvas)
set_constrained_layout(self, constrained) [*Deprecated*] Set whether ``constrained_layout`` is used upon drawing. [extrait de set_constrained_layout.__doc__]
set_constrained_layout_pads(self, **kwargs) [*Deprecated*] Set padding for ``constrained_layout``. [extrait de set_constrained_layout_pads.__doc__]
set_dpi(self, val)
set_figheight(self, val, forward=True)
set_figwidth(self, val, forward=True)
set_layout_engine(self, layout=None, **kwargs)
set_size_inches(self, w, h=None, forward=True)
set_tight_layout(self, tight) [*Deprecated*] Set whether and how `.Figure.tight_layout` is called when drawing. [extrait de set_tight_layout.__doc__]
show(self, warn=True)
tight_layout(self, *, pad=1.08, h_pad=None, w_pad=None, rect=None)
waitforbuttonpress(self, timeout=-1)

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

__subclasshook__, add_artist, add_axes, add_gridspec, add_subfigure, add_subplot, align_labels, align_titles, align_xlabels, align_ylabels, autofmt_xdate, clf, colorbar, contains, delaxes, gca, get_children, get_default_bbox_extra_artists, get_edgecolor, get_facecolor, get_figure, get_frameon, get_linewidth, get_suptitle, get_supxlabel, get_supylabel, get_tightbbox, get_window_extent, legend, sca, set_edgecolor, set_facecolor, set_figure, set_frameon, set_linewidth, subfigures, subplot_mosaic, subplots, subplots_adjust, suptitle, supxlabel, supylabel, text

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

__init_subclass__, __subclasshook__, add_callback, contains, 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_transform, get_transformed_clip_path_and_affine, get_url, get_visible, get_window_extent, get_zorder, have_units, is_transform_set, pchanged, pickable, properties, remove, remove_callback, set_agg_filter, set_alpha, 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, update_from

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

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

Vous êtes un professionnel et vous avez besoin d'une formation ? Sensibilisation à
l'Intelligence Artificielle
Voir le programme détaillé