On Jan 28, 1:01 pm, Mike Hansen <mhan...@gmail.com> wrote:
> You can easily create SVG plots as it is now:
>
> sage: p = plot(x^2, -2, 2)
> sage: p.save('xsquared.svg')

Interesting. In firefox 3.5.2, this actually does not work in the
notebook:
If I do this example, I end up with an "Additional plugins are
required" message, and instead of a plot, I see some placeholder in
the notebook. When I actually save the file and point my browser
straight to it via
"file:///..../xsquared.svg"
things work, so the browser is capable of displaying SVG. The notebook
is simply serving the file in a way that does not work well with
firefox 3.5.2, or the html that ties to include the file does not
convice firefox that it can really display this.

The following html does do the trick (with xsquared.svg saved as an
ordinary file)

<html>
<body>
<object data="xsquared.svg">
</body>
</html>

Incidentally, a scatterplot of 20000 points as "svg" does *not* get
rendered very swiftly by firefox. png is definitely the more workable
choice for that.

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

Reply via email to