matplotlib.axes.Axes.set_xscale#

Axes.set_xscale(value, **kwargs)[source]#

Set the xaxis' scale.

Parameters:
value{"linear", "log", "symlog", "logit", ...} or ScaleBase

The axis scale type to apply.

**kwargs

Different keyword arguments are accepted, depending on the scale. See the respective class keyword arguments:

Notes

By default, Matplotlib supports the above mentioned scales. Additionally, custom scales may be registered using matplotlib.scale.register_scale. These scales can then also be used here.

Examples using matplotlib.axes.Axes.set_xscale#

Markevery Demo

Markevery Demo

Markevery Demo
Labeling ticks using engineering notation

Labeling ticks using engineering notation

Labeling ticks using engineering notation
Inset Locator Demo

Inset Locator Demo

Inset Locator Demo
Asinh Demo

Asinh Demo

Asinh Demo
Loglog Aspect

Loglog Aspect

Loglog Aspect
Log Demo

Log Demo

Log Demo
Symlog Demo

Symlog Demo

Symlog Demo
Transformations Tutorial

Transformations Tutorial

Transformations Tutorial