fig, ax = plt.subplots() fig.patch.set_facecolor('blue') fig.patch.set_alpha(0.5) ax.patch.set_facecolor('green') ax.patch.set_alpha(0.3)