How to recover matplotlib defaults after setting stylesheet

前端 未结 3 1361
遥遥无期
遥遥无期 2020-12-04 13:20

In an ipython notebook, I used a matplotlib stylesheet to change the look of my plots using

from matplotlib.pyplot import *
%matplotlib inline
style.use(\'g         


        
3条回答
  •  臣服心动
    2020-12-04 13:37

    There actually is a default. But it's not listed under plt.style.available. Simply run :

    plt.style.use('default')
    

    It returns the style to the default Matplotlib settings in, for instance, Jupyter Notebook.

提交回复
热议问题