endangeredoxen / fivecentplots

A Python plotting analgesic
https://endangeredoxen.github.io/fivecentplots
11 stars 6 forks source link

rcParams figure.facecolor #30

Closed endangeredoxen closed 3 years ago

endangeredoxen commented 3 years ago

v0.5 dev

After plotting rcParam 'figure.facecolor' changes to '0.75'. Subsequent pylab plots have a gray background instead of white. Something may be changing with the theme setting?

endangeredoxen commented 3 years ago

added layout.restore func to reset the mpl.rcParams to their original state. issue was from:

if kwargs.get('tick_cleanup', True): mplp.style.use('classic') else: mplp.style.use('default')