[mod_python] plotting modpython

Bart scarfboy at gmail.com
Thu Oct 16 15:39:27 EDT 2008


Just in case you didn't know: if you use the Cairo backend you can
have it write to a StringIO and avoid files altogether

Regards,
--Bart


2008/10/16 Handrix <handrix at gmail.com>:
> 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/
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>
>


More information about the Mod_python mailing list