On Mon, Mar 16, 2009 at 1:52 PM, GKalman <kalma...@msn.com> 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.



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
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to