matplotlib.axes.Axes.loglog#

Axes.loglog(*args,**kwargs)[source]#

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

Call signatures:

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

This is just a thin wrapper aroundplot which additionally changesboth the x-axis and the y-axis to log scaling. All the concepts andparameters of plot can be used here as well.

The additional parametersbase,subs andnonpositive control thex/y-axis properties. They are just forwarded toAxes.set_xscale andAxes.set_yscale. To use different properties on the x-axis and they-axis, use e.g.ax.set_xscale("log",base=10);ax.set_yscale("log",base=2).

Parameters:
basefloat, default: 10

Base of the logarithm.

subssequence, optional

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

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

Non-positive values can be masked as invalid, or clipped to a verysmall positive number.

**kwargs

All parameters supported byplot.

Returns:
list ofLine2D

Objects representing the plotted data.

Examples usingmatplotlib.axes.Axes.loglog#

Log scale

Log scale

Secondary Axis

Secondary Axis

Axis scales

Axis scales