matplotlib.pyplot.semilogx#

matplotlib.pyplot.semilogx(*args,**kwargs)[source]#

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 aroundplot which additionally changesthe x-axis to log scaling. All the concepts and parameters of plot canbe used here as well.

The additional parametersbase,subs, andnonpositive control thex-axis properties. They are just forwarded toAxes.set_xscale.

Parameters:
basefloat, default: 10

Base of the x logarithm.

subsarray-like, optional

The location of the minor xticks. IfNone, reasonable locationsare automatically chosen depending on the number of decades in theplot. SeeAxes.set_xscale for details.

nonpositive{'mask', 'clip'}, default: 'clip'

Non-positive values in x can be masked as invalid, or clipped to avery small positive number.

**kwargs

All parameters supported byplot.

Returns:
list ofLine2D

Objects representing the plotted data.

Notes

On this page