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 »

Fonction autoscale - module matplotlib.pyplot

Signature de la fonction autoscale

def autoscale(enable: 'bool' = True, axis: "Literal['both', 'x', 'y']" = 'both', tight: 'bool | None' = None) -> 'None' 

Description

help(matplotlib.pyplot.autoscale)

Autoscale the axis view to the data (toggle).

Convenience method for simple axis view autoscaling.
It turns autoscaling on or off, and then,
if autoscaling for either axis is on, it performs
the autoscaling on the specified axis or Axes.

Parameters
----------
enable : bool or None, default: True
    True turns autoscaling on, False turns it off.
    None leaves the autoscaling state unchanged.
axis : {'both', 'x', 'y'}, default: 'both'
    The axis on which to operate.  (For 3D Axes, *axis* can also be set
    to 'z', and 'both' refers to all three Axes.)
tight : bool or None, default: None
    If True, first set the margins to zero.  Then, this argument is
    forwarded to `~.axes.Axes.autoscale_view` (regardless of
    its value); see the description of its behavior there.

Notes
-----

.. note::

    This is the :ref:`pyplot wrapper <pyplot_interface>` for `.axes.Axes.autoscale`.


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