Pierre H. -- March 2014
import matplotlib as mpl
import matplotlib.pyplot as plt
mpl.__version__
'1.3.1'
# Default background is white:
mpl.rcParams['axes.facecolor']
'w'
# Change it:
mpl.rcParams['axes.facecolor'] = 'red'
test a plot:
plt.plot(range(3), '-D')
[<matplotlib.lines.Line2D at 0x27ff250>]
→ this plot burns the eyes...