Skip to content

Instantly share code, notes, and snippets.

@Keiku
Created June 9, 2020 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Keiku/88bf1a467bf1009227a007a46fd9f052 to your computer and use it in GitHub Desktop.
Save Keiku/88bf1a467bf1009227a007a46fd9f052 to your computer and use it in GitHub Desktop.
Reset the seaborn setting once set.
# Reset the seaborn setting once set. It can be used in the middle of a notebook.
# Reference: python seaborn to reset back to the matplotlib - Stack Overflow https://stackoverflow.com/questions/26899310/python-seaborn-to-reset-back-to-the-matplotlib
# Either of the following may be used
# in matplotlib
import matplotlib as mpl
mpl.rcParams.update(mpl.rcParamsDefault)
# in seaborn
import seaborn as sns
sns.reset_orig()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment