On Sat, Dec 27, 2008 at 2:06 PM, gerhard <[email protected]> wrote:
>
> There is probably a better way,
> but you could save the plot in a png file
>   sage:   P = plot(sin, (0,10)); P.save( 'foo.png' )
>
> and insert it in your table with
>    html( '<img src="foo.png">')

That doesn't work because it will show the image twice.  Fortunately,
there is something similar you can do that works fine, which is to use
cell:// in the url of the file:

P = plot(sin, (0,10))
P.save( 'foo.png' )
html( '<img src="cell://foo.png">')

The above is the "official" way to do what you want.  I do not think
it is properly documented though yet!  I only know about it because I
happened to have implemented it.

 -- William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to