But does
plt.savefig(os.path.join(request.folder,'static','mp1.png'),format='png')
result in a file being saved in c:\web2py\applications\your_app\static\?
On Wednesday, September 7, 2011 4:38:13 PM UTC-4, Richard wrote:
>
> Anthony,
>
> plt.savefig('c:\web2py\outputfile.png',format='png')
>
> does me give an accessable png-file
>
> Op 7-9-2011 22:20, Anthony schreef:
>
> Have you confirmed that the file is actually getting saved in the expected
> location? Are you able to run the matplotlib code and save the file outside
> of web2py?
>
>
> On Wednesday, September 7, 2011 4:05:08 PM UTC-4, Richard wrote:
>>
>> Only adding the .png extention is not sufficient.
>>
>> outputfile = os.path.join(request.folder,'static','mp1.png')
>> plt.savefig(outputfile,format='png')
>>
>>
>> <p> Outfile from Matplotlib
>> <img src="{{=URL('static','mp1.png')}}" />
>> </p>
>>
>>
>> Besides this issue; is using a temporarily file a mature solution or is
>> streaming preferrable?
>>
>> Richard
>>
>>
>> Op 7-9-2011 21:46, Anthony schreef:
>>
>> On Wednesday, September 7, 2011 3:35:23 PM UTC-4, Richard wrote:
>>>
>>>
>>> <img src="{{=URL('static','mp1')}}" />
>>>
>>
>> Should be URL('static','mp1.png').
>>
>> Anthony
>>
>>
>> Geen virus gevonden in het binnenkomende-bericht.
>> Gecontroleerd door AVG - www.avg.com
>> Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 09/02/11
>> 08:34:00
>>
>>
>>
>>
>
> Geen virus gevonden in het binnenkomende-bericht.
> Gecontroleerd door AVG - www.avg.com
> Versie: 9.0.872 / Virusdatabase: 271.1.1/3872 - datum van uitgifte: 09/02/11
> 08:34:00
>
>
>
>