Created
September 28, 2020 21:42
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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