fig = plt.figure() axs = fig.subplots(3, 1, sharex=True, height_ratios=[3, 1, 1])