| [ Web Proxy ] |
| Viewing: https://matplotlib.org/devdocs/api/_as_gen/../../api/_as_gen/matplotlib.axes.Axes.twiny.html | [Back] [Original] |
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.
Axes, optionalThe axes.Axes subclass that is instantiated. This parameter
is incompatible with projection and polar. See
axisartist for examples.
By default, Axes is used.
Added in version 3.11.
A zorder offset for the twin Axes, relative to the original Axes.
The twin's zorder is set to self.get_zorder() + delta_zorder.
By default (delta_zorder is 0), the twin has the same zorder as
the original Axes.
The keyword arguments passed to Figure.add_subplot or Figure.add_axes.
Added in version 3.11.
The newly created Axes instance
Notes
For those who are 'picking' artists while using twiny, pick events are only called for the artists in the top-most Axes.
matplotlib.axes.Axes.twiny#| Web Proxy Viewer | New URL | Original Page |