matplotlib.axes.Axes.twinx
- Axes.twinx(axes_class=None, *, delta_zorder=0.0, **kwargs)
Create a twin Axes sharing the xaxis.
Create a new Axes with an invisible x-axis and an independent y-axis positioned opposite to the original one (i.e. at right). The x-axis autoscale setting will be inherited from the original Axes. To ensure that the tick marks of both y-axes align, see
LinearLocator.