Ask Your Question
1

Return vertices of a Schlegel projection

asked 2015-09-27 03:07:38 +0100

I would like to have the vertices of a Schlegel's projection of a dodecahedron, octahedron, and an icosahedron, to plot them using tikz in a LaTeX document. Can I generate a tikz plot using SAGE?

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-09-27 04:51:41 +0100

fidbc gravatar image

If this helps, you can get TikZ/tkz code from sage for the Dodecahedral graph (and similarly for the Icosahedral graph) as follows.

g=graphs.DodecahedralGraph()
g.set_latex_options(tkz_style = 'Art')
print latex(g)
# very long output

Sample output after compiling the LaTeX code:

image description

However if you just want the coordinates of the vertices, then g.get_pos() will return a dictionary containing the coordinates.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-09-27 03:07:38 +0100

Seen: 344 times

Last updated: Sep 27 '15