To revert to default settings, you can call matplotlib.rcdefaults() or matplotlib.style.use('default').