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 :

Classe « Axes »

Méthode matplotlib.pyplot.Axes.semilogx

Signature de la méthode semilogx

def semilogx(self, *args, **kwargs) 

Description

semilogx.__doc__

Make a plot with log scaling on the x axis.

Call signatures::

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

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

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

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

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

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

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

Other Parameters
----------------
**kwargs
    All parameters supported by `.plot`.