matplotlib.pyplot.twinx — Matplotlib 3.10.3 documentation (original) (raw)
matplotlib.pyplot.twinx(ax=None)[source]#
Make and return a second Axes that shares the _x_-axis. The new Axes will overlay ax (or the current Axes if ax is None), and its ticks will be on the right.
Examples