Ask Your Question
0

Return vertices of a Schlegel projection

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

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
0

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

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-26 20:07:38 -0600

Seen: 88 times

Last updated: Sep 26 '15