Hi!

On Oct 13, 10:27 am, Santanu Sarkar <sarkar.santanu....@gmail.com>
wrote:
> Suppose  we want to plot(y vs x)  with data set as follows:
> (.1,1), (.2,3), (.4,5), (.5,6).
> Also we want find plot with two data set as follows:
> (x1,y1), ............,(xn,yn)  and  (x1,y'1),......,(x'n,y'n).
>
> We want to output as .eps file.

This page of the Reference Manual might help you:
http://www.sagemath.org/doc/reference/sage/plot/plot.html?highlight=png#sage.plot.plot.Graphics.save

However, it seems that the example given in the manual does not
demonstrate how to save. That's bad.

Here is an explicit example:
  sage: c = circle((0,0.5),1,rgbcolor='blue') + circle((0,-0.5),
1,rgbcolor='red')  # create union of two circles
  sage: c # this lets an image viewer pop up
  sage: save(c,'test.eps') # now, the picture is saved in EPS format
in a file test.eps

The above should work with any graphic object, and the format depends
on the specified file extension (test.eps or test.png or ...).

Best regards,
Simon

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

Reply via email to