[mod_python] plotting modpython

Sean Davis sdavis2 at mail.nih.gov
Thu Oct 16 15:56:44 EDT 2008


On Thu, Oct 16, 2008 at 3:39 PM, Bart <scarfboy at gmail.com> wrote:
> 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

Do you have a link or an example, just out of curiosity?

Thanks,
Sean

> 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
>>
>>
> _______________________________________________
> 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