You are reading an old version of the documentation (v3.0.0). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.xscale.html
Version 3.0.0
matplotlib
Fork me on GitHub

Table Of Contents

matplotlib.pyplot.xscale

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

Set the x-axis scale.

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

scaling strategy to apply

Notes

Different kwargs are accepted, depending on the scale. See the scale module for more information.

Examples using matplotlib.pyplot.xscale