I'm using seaborn version o.4 and matplotlib version 1.42 I have a chart displays both line and marker through simple plot command eg.
plt.plot([1,5,3,8,4],'-bo');
Due to a potential bug (https://github.com/mwaskom/seaborn/issues/344), after import seaborn, same code shows line only without marker.
import seaborn as sb
plt.plot([1,5,3,8,4],'-bo');
So my question is: after import seaborn, Is there a way to reset all the parameters back to original?
To refresh Matplotlib's configuration side effects often encountered with Seaborn:
Run this:
For old Python2 code:
Note: None of the following correctly restores the state of matplotlib:
One can simply call the
seaborn.set()
function, with no function parameters, see[seaborn tutorial][1]
.You can save the
rcParams
you want, before changing the style with seaborn (note that seaborn no longer changes thercParams
upon import):Note that both these
restores almost all
rcParams
to their default value. The few that will be different can easily be viewed by (I ran this in a Jupyter Notebook):and
Yes, call
seaborn.reset_orig
.