matplotlib.pyplot.twiny
- matplotlib.pyplot.twiny(ax=None)
Make and return a second Axes that shares the y-axis. The new Axes will overlay ax (or the current Axes if ax is None), and its ticks will be on the top.
Examples
Make and return a second Axes that shares the y-axis. The new Axes will overlay ax (or the current Axes if ax is None), and its ticks will be on the top.
matplotlib.pyplot.twiny