ax1 = fig.add_axes([0.1,0.5,0.8, 0.4]) ax2 = fig.add_axes([0.1,0.1,0.8, 0.4], sharex=ax1) It is expected that the return values of ax1.get_xlim() and ax2.get_xlim() should always be identical. I.e.
Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issues ...