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.