Mikie wrote:
> I want to include a simple plotting form in my server.  I noticed in
> the notebook the plotting function creates an image.  It must save it
> to the server then display it.
> 
> My output page displays strings
>  request.write("<p>%s</p>" % part1)
> 
> Is there anyway to get it to display an image?


Save the image to a file and then use the <img> tag to display that file.

sage: plot(x^2,(x,0,1)).save('test.png')

Now use <img src='test.png'/>

Jason


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to