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é
Module « matplotlib.pyplot »

Fonction ticklabel_format - module matplotlib.pyplot

Signature de la fonction ticklabel_format

def ticklabel_format(*, axis: "Literal['both', 'x', 'y']" = 'both', style: "Literal['', 'sci', 'scientific', 'plain'] | None" = None, scilimits: 'tuple[int, int] | None' = None, useOffset: 'bool | float | None' = None, useLocale: 'bool | None' = None, useMathText: 'bool | None' = None) -> 'None' 

Description

help(matplotlib.pyplot.ticklabel_format)

Configure the `.ScalarFormatter` used by default for linear Axes.

If a parameter is not set, the corresponding property of the formatter
is left unchanged.

Parameters
----------
axis : {'x', 'y', 'both'}, default: 'both'
    The axis to configure.  Only major ticks are affected.

style : {'sci', 'scientific', 'plain'}
    Whether to use scientific notation.
    The formatter default is to use scientific notation.
    'sci' is equivalent to 'scientific'.

scilimits : pair of ints (m, n)
    Scientific notation is used only for numbers outside the range
    10\ :sup:`m` to 10\ :sup:`n` (and only if the formatter is
    configured to use scientific notation at all).  Use (0, 0) to
    include all numbers.  Use (m, m) where m != 0 to fix the order of
    magnitude to 10\ :sup:`m`.
    The formatter default is :rc:`axes.formatter.limits`.

useOffset : bool or float
    If True, the offset is calculated as needed.
    If False, no offset is used.
    If a numeric value, it sets the offset.
    The formatter default is :rc:`axes.formatter.useoffset`.

useLocale : bool
    Whether to format the number using the current locale or using the
    C (English) locale.  This affects e.g. the decimal separator.  The
    formatter default is :rc:`axes.formatter.use_locale`.

useMathText : bool
    Render the offset and scientific notation in mathtext.
    The formatter default is :rc:`axes.formatter.use_mathtext`.

Raises
------
AttributeError
    If the current formatter is not a `.ScalarFormatter`.

Notes
-----

.. note::

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


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é