W3cubDocs

/Matplotlib 3.1

matplotlib.axes.Axes.secondary_yaxis

Axes.secondary_yaxis(self, location, *, functions=None, **kwargs) [source]

Add a second y-axis to this axes.

For example if we want to have a second scale for the data plotted on the yaxis.

%(_secax_docstring)s

Examples

Add a secondary axes that converts from radians to degrees

(Source code, png, pdf)

../../_images/matplotlib-axes-Axes-secondary_yaxis-1.png

Examples using matplotlib.axes.Axes.secondary_yaxis

© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.axes.Axes.secondary_yaxis.html