matplotlib.axes.Axes.set_yscale#

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

Set the yaxis' scale.

Parameters:
valuestr orScaleBase

The axis scale type to apply. Valid string values are the names of scaleclasses ("linear", "log", "function",...). These may be the names of anyof thebuilt-in scales or of any custom scalesregistered usingmatplotlib.scale.register_scale.

**kwargs

Ifvalue is a string, keywords are passed to the instantiation method ofthe respective class.

Examples usingmatplotlib.axes.Axes.set_yscale#

Markevery Demo

Markevery Demo

Asinh scale

Asinh scale

Loglog aspect

Loglog aspect

Log scale

Log scale

Scales overview

Scales overview

Symlog scale

Symlog scale

Stock prices over 32 years

Stock prices over 32 years

Artist customization in box plots

Artist customization in box plots

Different ways of specifying error bars

Different ways of specifying error bars

Axis scales

Axis scales

Colormap normalization

Colormap normalization