Background colours

Hi, I am quite new to python and matplotlib!!

When plotting a simple graph using python and matplotlib my plot appears
however the area (background) where my x.label and y.label and axes limits
lie is grey, does anyone know how to set this to another color ie. white???

Thanks

Maria

···

--
View this message in context: http://www.nabble.com/Background-colours-tp25787444p25787444.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

import matplotlib.pyplot as plt

plt.figure(facecolor='white')
# from the docu:
# facecolor : the background color; defaults to rc figure.facecolor

Kind regards
Matthias

···

On Wednesday 07 October 2009 16:15:03 mariamarsh@...2815... wrote:

Hi, I am quite new to python and matplotlib!!

When plotting a simple graph using python and matplotlib my plot appears
however the area (background) where my x.label and y.label and axes limits
lie is grey, does anyone know how to set this to another color ie.
white???

Thanks

Maria