matplotlib.axes.Axes.set_xscale#

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

Set the xaxis' scale.

Parameters:
valuestr or ScaleBase

The axis scale type to apply. Valid string values are the names of scale classes ("linear", "log", "function",...). These may be the names of any of the built-in scales or of any custom scales registered using matplotlib.scale.register_scale.

**kwargs

If value is a string, keywords are passed to the instantiation method of the respective class.

Examples using matplotlib.axes.Axes.set_xscale#

Inset locator demo

Inset locator demo

Markevery Demo

Markevery Demo

Asinh scale

Asinh scale

Loglog aspect

Loglog aspect

Scales overview

Scales overview

Symlog scale

Symlog scale

Format ticks using engineering notation

Format ticks using engineering notation

Axis scales

Axis scales