import matplotlib.pyplot as plt
from matplotlib.gridspec import GridSpec
plt.style.use("ggplot")
fig = plt.figure(figsize=(12,8))
fig.patch.set_facecolor("#fafafa")
gs = GridSpec(4, 1, height_ratios=[3, 1, 0.8, 1.2])
gs.update(left=0.07,bottom=0.05, right=0.95, top=0.95, hspace=0)
ax0 = plt.subplot(gs[0])
ax0.tick_params(axis="x", bottom=False, labelbottom=False)
ax1 = plt.subplot(gs[1], sharex=ax0)
ax1.spines["top"].set_color("slategray")
ax2 = plt.subplot(gs[2])
ax2.axis("off")
ax3 = plt.subplot(gs[3], sharex=ax0)
ax3.grid(False)
plt.show()