| 1 | initial version |
a = [(x,x^2) for x in xrange(100)] img = list_plot(a) img.save("filename.svg")
I'm sure there are more elegant idioms and display options, but that will indeed save a scalable vector graphic.
| 2 | added semicolons, forgot the preformatted text wrapper |
a = [(x,x^2) for x in xrange(100)]
xrange(100)];
img = list_plot(a)
img.save("filename.svg")list_plot(a);
img.save("filename.svg");
I'm sure there are more elegant idioms and display options, but that will indeed save a scalable vector graphic.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.