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 switch to seaborn defaults, simply call the set_theme() function. (Note that in versions of seaborn prior to 0.8, set_theme() was called on import. On later versions, it must be explicitly invoked). Seaborn splits matplotlib parameters into two independent groups.
Seaborn is more comfortable in handling Pandas data frames. It uses basic sets of methods to provide beautiful graphics in python. Matplotlib works efficiently with data frames and arrays.It treats figures and axes as objects. It contains various stateful APIs for plotting.
Use matplotlib. style. use('default') or rcdefaults() to restore the default rcParams after changes.
Yes, call seaborn.reset_orig
.
None of these solutions worked for me (Python 3.x, Jupyter).
What worked was matplotlib.rc_file_defaults()
See the documentation here: https://matplotlib.org/stable/api/matplotlib_configuration_api.html#matplotlib.rc_file_defaults
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With