I need a reference to a "How to..." (or a sample code) to changing the color
(Default or otherwise) of the Canvas, when plotting with matplotlib, using
Python 2.5 on Windows.
···
–
View this message in context: http://www.nabble.com/pylab-matplotlib-canvas-background-color-change…-tp22541479p22541479.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
When creating your figure, just pass the facecolor you want in
fig = figure(facecolor=‘red’)
With an existing figure instance, you can set the facecolor property of the rectangle patch
fig.patch.set_facecolor(‘green’)
or you can set the default ‘figure.facecolor’ property in your matplotlibrc config file
http://matplotlib.sourceforge.net/users/customizing.html
JDH
···
On Mon, Mar 16, 2009 at 1:52 PM, GKalman <kalman_g@…1836…954…> wrote:
I need a reference to a “How to…” (or a sample code) to changing the color
(Default or otherwise) of the Canvas, when plotting with matplotlib, using
Python 2.5 on Windows.