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


Reply via email to