[mod_python] plotting modpython

Handrix handrix at gmail.com
Thu Oct 16 07:53:46 EDT 2008


Hello,

I'm working with modpython and I need to draw some statistic, so my choise
was about matplotlib.
so when execute this example :

#########################
from pylab import *
import matplotlib
matplotlib.use('Agg')

plot([1,2,3,4])
savefig('test')
#########################

I got a Runtime error :
RuntimeError: Could not open file test.png

does any one experienced with pylab and modpython ?
Thank you in advance,

-- 
Handrix
Network Engineering/Security
http://securynix.co.cc/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20081016/99648be5/attachment.html


More information about the Mod_python mailing list