Ask Your Question

Return vertices of a Schlegel projection

asked 2015-09-26 20:07:38 -0500

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?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-09-26 21:51:41 -0500

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.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


Asked: 2015-09-26 20:07:38 -0500

Seen: 91 times

Last updated: Sep 26 '15