matplotlib.pyplot.twiny#

matplotlib.pyplot.twiny(ax=None)[source]#

Make and return a second Axes that shares they-axis. The new Axes willoverlayax (or the current Axes ifax isNone), and its ticks will beon the top.

Examples

Plots with different scales

Examples usingmatplotlib.pyplot.twiny#

Plots with different scales

Plots with different scales