Quantcast
Channel: ASKSAGE: Sage Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 4

Answer by fidbc for I found this page which mentioned (near the bottom) that the Dodecahedral Graph can be rendered in 3D after which you could look at the anaglyph (3D red, cyan image). This picture is shown (which appears to be Sage output) but I am unable to reproduce it. I triedH=graphs.DodecahedralGraph().plot3d() H.show(stereo='redcyan') H.save("dodec.png") but the resulting png image isn't in 3D. I tried adding stereo='redcyan', stereo =True, and other variations to the line saving the png but without success. How do I save anaglyphs like the image above?

$
0
0
Try getting the plot in the Jmol viewer without assigning it to a variable, so just graphs.DodecahedralGraph().plot3d() Once you have the Jmol viewer right-click the graph and choose 'Style -> Stereographic -> Red+Cyan'. If you are not using the notebook (ie. running Jmol as an application), you can right click the graph again and choose 'File -> Export PNG Image'. If you are using the notebook (ie. running Jmol as an applet), you can click the "Toggle Advanced Controls" buton and then the "Get Static Image to Save (Sleep)" button. This should get you some version of the image you want. Edit: Doing this in the notebook is slightly different, updated answer.

Viewing all articles
Browse latest Browse all 4

Trending Articles