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

Fonction semilogy - module matplotlib.pyplot

Signature de la fonction semilogy

def semilogy(*args, **kwargs) -> 'list[Line2D]' 

Description

help(matplotlib.pyplot.semilogy)

Make a plot with log scaling on the y-axis.

Call signatures::

    semilogy([x], y, [fmt], data=None, **kwargs)
    semilogy([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs)

This is just a thin wrapper around `.plot` which additionally changes
the y-axis to log scaling. All the concepts and parameters of plot can
be used here as well.

The additional parameters *base*, *subs*, and *nonpositive* control the
y-axis properties. They are just forwarded to `.Axes.set_yscale`.

Parameters
----------
base : float, default: 10
    Base of the y logarithm.

subs : array-like, optional
    The location of the minor yticks. If *None*, reasonable locations
    are automatically chosen depending on the number of decades in the
    plot. See `.Axes.set_yscale` for details.

nonpositive : {'mask', 'clip'}, default: 'clip'
    Non-positive values in y can be masked as invalid, or clipped to a
    very small positive number.

**kwargs
    All parameters supported by `.plot`.

Returns
-------
list of `.Line2D`
    Objects representing the plotted data.

Notes
-----

.. note::

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


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