ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 03 Apr 2015 07:14:36 -0500How do you save a graph in eps?https://ask.sagemath.org/question/26433/how-do-you-save-a-graph-in-eps/ I get a file filename.eps.sobj. How do I transform it into eps?Fri, 03 Apr 2015 05:04:52 -0500https://ask.sagemath.org/question/26433/how-do-you-save-a-graph-in-eps/Answer by tmonteil for <p>I get a file filename.eps.sobj. How do I transform it into eps?</p>
https://ask.sagemath.org/question/26433/how-do-you-save-a-graph-in-eps/?answer=26434#post-id-26434It seems you saved your graph as a Sage object (hence the `.sobj` extension).
To get it back as a graph, you can do:
sage: G = load('filename.eps.sobj')
Then you can make a plot object from your graph:
sage: P = G.plot()
Then you can save this plot object as an `.eps` file, and the method will know that you want to save the plot as an `eps` file:
sage: P.save('mygraph.eps')
Of course, if you have a graph `G` in your Sage session, you can directly do:
sage: G.plot().save('mygraph.eps')
Fri, 03 Apr 2015 07:14:36 -0500https://ask.sagemath.org/question/26433/how-do-you-save-a-graph-in-eps/?answer=26434#post-id-26434