In [1]:
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 10, 100)
y = np.sin(x)
fig, axs = plt.subplots(2, sharex=True)
axs[0].plot(x, y)
axs[0].set_title(''''''''Plot 1'''''''')
axs[1].plot(x, -y)
axs[1].set_title(''''''''Plot 2'''''''')
plt.tight_layout()
plt.show()