W3cubDocs

/Matplotlib 3.5

matplotlib.axes.Axes.sharex

Axes.sharex(other)[source]

Share the x-axis with other.

This is equivalent to passing sharex=other when constructing the axes, and cannot be used if the x-axis is already being shared with another Axes.

© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/matplotlib.axes.Axes.sharex.html