On 11/27/12 11:43 PM, Rogério Brito wrote:
Hi there.I was just trying to get my feet wet with Sage by generating some SVG files of graphs for use with my LaTeX documents, but I noticed a problem: In the following session, with Sage 5.4.1 (actually, sage-5.4.1-linux-32bit-ubuntu_12.04.1_lts-i686-Linux) running on a Debian sid machine, I get a strange error: g = graphs.PetersenGraph() g.plot().save('petersen.png') # generated OK g.plot().save('petersen.pdf') # also generated OK g.plot().save('petersen.svg') # not OK In the case of the SVG file, the edges of the graph are OK, as with the PNG and PDF format (when viewed with Gnome's eog), but all the vertices are collapsed on the top left corner of the figure. BTW, my original intention was to generate some drawings of graphs with Sage so that I could shift back and forth between SVG and tikz (via Inkscape), once they are created by Sage, but that strategy didn't work. :( Is this a known bug?
Can you try opening the svg file up in inkscape? It may be a problem with eog. When I open the file in inkscape, the graph looks great. When I try to view the svg in chrome, the vertices look fine, but 4 edges are missing. Those edges appear just fine in inkscape.
Thanks, Jason -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support?hl=en.
