I'm using SAGE remotely and I would like to know how to save .svg files to my computer.
I don't know why, but SVG files get injected directly into the worksheet HTML, unlike PDF or other filetypes which just get a link. Here is a workaround,
P=plot(sin(x), (x,0,pi)) fn = 'plot.svg' P.save(DATA+fn, figsize=[2,2]) html(r'<a href="data/'+fn+r'">plot</a>')
It's not very nice, but it does the job. You can now right click on the link and download the SVG file.
Asked: 2012-07-16 10:52:46 -0500
Seen: 326 times
Last updated: Jul 16 '12