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 ? Calcul scientifique
avec Python
Voir le programme détaillé
Classe « Figure »

Méthode matplotlib.pyplot.Figure.set_layout_engine

Signature de la méthode set_layout_engine

def set_layout_engine(self, layout=None, **kwargs) 

Description

help(Figure.set_layout_engine)

Set the layout engine for this figure.

Parameters
----------
layout : {'constrained', 'compressed', 'tight', 'none', `.LayoutEngine`, None}

    - 'constrained' will use `~.ConstrainedLayoutEngine`
    - 'compressed' will also use `~.ConstrainedLayoutEngine`, but with
      a correction that attempts to make a good layout for fixed-aspect
      ratio Axes.
    - 'tight' uses `~.TightLayoutEngine`
    - 'none' removes layout engine.

    If a `.LayoutEngine` instance, that instance will be used.

    If `None`, the behavior is controlled by :rc:`figure.autolayout`
    (which if `True` behaves as if 'tight' was passed) and
    :rc:`figure.constrained_layout.use` (which if `True` behaves as if
    'constrained' was passed).  If both are `True`,
    :rc:`figure.autolayout` takes priority.

    Users and libraries can define their own layout engines and pass
    the instance directly as well.

**kwargs
    The keyword arguments are passed to the layout engine to set things
    like padding and margin sizes.  Only used if *layout* is a string.



Vous êtes un professionnel et vous avez besoin d'une formation ? RAG (Retrieval-Augmented Generation)
et Fine Tuning d'un LLM
Voir le programme détaillé