smpl.plot.twiny

smpl.plot.twiny(ax=None)[source]

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

/gallery/subplots_axes_and_figures/two_scales