Skip to content

Instantly share code, notes, and snippets.

@hectormz
Created August 9, 2022 22:03
Show Gist options
  • Save hectormz/11f7774fa009e580edcc70f10c3e0cac to your computer and use it in GitHub Desktop.
Save hectormz/11f7774fa009e580edcc70f10c3e0cac to your computer and use it in GitHub Desktop.
Removing Matplotlib figure (in Jupyter) transparency
fig = plt.gcf()
fig.patch.set_facecolor("white")
fig.patch.set_alpha(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment