Matplotlib does not match fivethirtyeight style sheet

I am plotting some data in matplotlib and for some reason even without including

matplotlib.pyplot.style.use('fivethirtyeight')

      

I still have fivethirtyeight style diagrams. Fivethirtyeight was one of the first stylesheets I tried, but now I can't get rid of it without using another stylesheet, when what I really would like to do is start with matplotlib's default settings and tweak them myself.

Is there some setting somewhere that I am missing, or some file that I need to change?

+3


source to share


1 answer


Take a look at your matplotlibrc settings. You can find the file by following these steps:

>>> import matplotlib
>>> matplotlib.matplotlib_fname()
'/home/foo/.config/matplotlib/matplotlibrc'

      

Otherwise, also check:

`~/.matplotlib/stylelib`

      



You may have overwritten the default. Finally, you can always:

plt.rcdefaults()

      

for a temporary solution. The permanent equivalent would be to delete your folder .matplotlib

.

+1


source







All Articles