here is my code
import matplotlib.pyplot as plt import numpy as np fig, (ax1, ax2) = plt.subplots(2,1) fig.subplots_adjust(hspace=0.5) data1