Formatting two plots to have the same x axis range

Thank you. You’re right. xlims solves my problem, and it is nevertheless great to know about linkaxes for future reference.