Skip to content

Instantly share code, notes, and snippets.

@blaylockbk
Created September 28, 2020 21:42
Show Gist options
  • Save blaylockbk/eddf1b8bdd7a44da67fcfcee9b8729d2 to your computer and use it in GitHub Desktop.
Save blaylockbk/eddf1b8bdd7a44da67fcfcee9b8729d2 to your computer and use it in GitHub Desktop.
Don't let Jupyter Notebook matplotlib images output with transparency (when you copy it)
# Add this to your ~/.ipython/profile_default/ipython_config.py
# file so that when you copy a matplotlib plot from JupyterLab
# it will not copy the transparency.
c = get_config()
c.InlineBackend.print_figure_kwargs={'facecolor' : "w"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment