Ask Your Question

Revision history [back]

One can

  • save 2D graphics to png
  • save 3D graphics to html

and they are then easy to include in web pages.

Examples:

sage: parabola = plot(lambda x: x^2, (-1, 1))
sage: parabola.save('parabola.png')

sage: xyz = (lambda u, v: u*cos(v), lambda u, v: u*sin(v), lambda u, v: u^2)
sage: paraboloid = parametric_plot3d(xyz, (0, 1), (0, 2*RDF.pi()))
sage: paraboloid.save('paraboloid.html')