You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 3.0.2.post1971+g24524c430
Fork me on GitHub

Table of Contents


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

Set the y-axis scale.

value : {"linear", "log", "symlog", "logit", ...}

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