matplotlib.axes.Axes.sharex

Axes.sharex(other)

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.

Examples using matplotlib.axes.Axes.sharex