matplotlib and Zope

John,

Hey Sascha, thanks for this example. If you get some time, could you
add it to the matplotlib wiki at
http://www.scipy.org/wikis/topical_software/MatplotlibCookbook?

It's been a pleasure. I have added my example (including your suggested changes) to the wiki: http://www.scipy.org/wikis/topical_software/MatplotlibAndZope

Sascha

···

I have one suggestion: you need to be careful to do

import matplotlib
matplotlib.use('Agg')

*before* importing pylab, in case the default matplotlibrc setting has
a GUI backend (eg 'backend : GTKAgg')

Thanks!
JDH

Thanks for the examples.

One question for me (being a new matplotlib user). When using this recipe to get it incorporated in Zope, I get a gray area around my chart. Anyway to set this to a different color (white) ?

Sascha wrote:

···

John,

Hey Sascha, thanks for this example. If you get some time, could you
add it to the matplotlib wiki at
http://www.scipy.org/wikis/topical_software/MatplotlibCookbook?

It's been a pleasure. I have added my example (including your suggested changes) to the wiki: http://www.scipy.org/wikis/topical_software/MatplotlibAndZope

Sascha

I have one suggestion: you need to be careful to do

import matplotlib
matplotlib.use('Agg')

*before* importing pylab, in case the default matplotlibrc setting has
a GUI backend (eg 'backend : GTKAgg')

Thanks!
JDH

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

you could try

figure.facecolor : white

in your matplotlibrc

Helge

···

On 9/20/05, Steinar Rune Eriksen <sre@...800...> wrote:

One question for me (being a new matplotlib user). When using this
recipe to get it incorporated in Zope, I get a gray area around my
chart. Anyway to set this to a different color (white) ?

Great. Thanks!

Helge Avlesen wrote:

···

On 9/20/05, Steinar Rune Eriksen <sre@...800...> wrote:

One question for me (being a new matplotlib user). When using this
recipe to get it incorporated in Zope, I get a gray area around my
chart. Anyway to set this to a different color (white) ?

you could try

figure.facecolor : white

in your matplotlibrc

Helge

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php