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

Classe « Figure »

Informations générales

Héritage

builtins.object
    Artist
        FigureBase
            Figure

Définition

class Figure(FigureBase):

Description [extrait de Figure.__doc__]

    The top level container for all the plot elements.

    The Figure instance supports callbacks through a *callbacks* attribute
    which is a `.CallbackRegistry` instance.  The events you can connect to
    are 'dpi_changed', and the callback will be called with ``func(fig)`` where
    fig is the `Figure` instance.

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

    suppressComposite
        For multiple figure 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)

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 __doc__]
frameon
mouseover
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) Clear the figure -- synonym for `clf`. [extrait de clear.__doc__]
clf(self, keep_observers=False)
draw(self, renderer)
draw_artist(self, a)
execute_constrained_layout(self, renderer=None)
figimage(self, X, xo=0, yo=0, alpha=None, norm=None, cmap=None, vmin=None, vmax=None, origin=None, resize=False, **kwargs)
get_axes(self)
get_constrained_layout(self)
get_constrained_layout_pads(self, relative=False)
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_size_inches(self)
get_tight_layout(self) Return whether `.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>)
init_layoutgrid(self) Initialize the layoutgrid for use in constrained_layout. [extrait de init_layoutgrid.__doc__]
savefig(self, fname, *, transparent=None, **kwargs)
set_canvas(self, canvas)
set_constrained_layout(self, constrained)
set_constrained_layout_pads(self, **kwargs)
set_dpi(self, val)
set_figheight(self, val, forward=True)
set_figwidth(self, val, forward=True)
set_size_inches(self, w, h=None, forward=True)
set_tight_layout(self, tight)
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

__init_subclass__, __subclasshook__, add_artist, add_axes, add_gridspec, add_subfigure, add_subplot, align_labels, align_xlabels, align_ylabels, autofmt_xdate, colorbar, contains, delaxes, gca, get_children, get_default_bbox_extra_artists, get_edgecolor, get_facecolor, get_frameon, get_linewidth, get_tightbbox, get_window_extent, legend, sca, set_edgecolor, set_facecolor, 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_contains, get_cursor_data, get_figure, get_gid, get_in_layout, get_label, 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, pick, pickable, properties, remove, remove_callback, set, set_agg_filter, set_alpha, set_animated, set_clip_box, set_clip_on, set_clip_path, set_contains, set_figure, set_gid, set_in_layout, set_label, 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__