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