First time here? Check out the FAQ!

Ask Your Question
1

Return vertices of a Schlegel projection

asked 9 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 9 years ago

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.

Preview: (hide)
link

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: 9 years ago

Seen: 354 times

Last updated: Sep 27 '15