matplotlib.pyplot.yscale(value, **kwargs)[source]#

Set the yaxis' scale.

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

The axis scale type to apply.


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


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.pyplot.yscale#

Custom scale

Custom scale

Pyplot tutorial

Pyplot tutorial