[wxPython-users] how to change grid color in MatPlot ?

Christopher Barker Chris.Barker at noaa.gov
Fri Dec 28 16:12:28 PST 2007


Stef Mientki wrote:
> I'm building a component derived from MatPlot,

This looks like a question for the matplotlib list.

> and can be changed by
>      rcParams [ 'grid.color' ] = ...
> 
> This has no effect, after the Figure / FigureCanvas are created.

I suspect that you can change the grid color, not by changing and 
rcParam, which really is setting defaults, but by changing it on your 
Figure object, or maybe the axis object that you're using. That 
shouldn't require destroying the FigureCanvas.

Take a look at the matplotlib class docs to figure out how to do it.

-CHB


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list