Ask Your Question

Saving 3d pictures as anaglyphs

asked 2013-01-01 13:23:32 -0500

dazedANDconfused gravatar image

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 image description

is shown (which appears to be Sage output) but I am unable to reproduce it. I tried


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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-01-01 16:38:11 -0500

fidbc gravatar image

updated 2013-01-01 16:51:20 -0500

Try getting the plot in the Jmol viewer without assigning it to a variable, so just


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.

edit flag offensive delete link more


Thanks for your help. I struggled with the instructions, though, so for those with the same problem let me mention: I was working in the Sage Cell Server and still am unable to get the instructions to work. So I switched to the notebook, chose 'Style->Stereographic->Red+Cyan' and couldn't find any "Toggle Advanced Controls" button. There is, however, a "Get Image" button (I'm using Sage 4.8) below the image. Left clicking on that opened up a static version in my Chromium browser. Right clicking on the static image let me save it as a .jpg file. If you could explain more how to get a static picture from Sage Cell Server (I like to run the latest version) and/or where to find "Toggle Advanced Controls" button, that would be helpful.

dazedANDconfused gravatar imagedazedANDconfused ( 2013-01-02 04:43:25 -0500 )edit

If you are using the sage cell server, then getting the appropriate style can be achieved with 'Advanced -> Style -> Stereographic -> Red+Cyan'. I'm not really sure how to get the png file directly from the jmol viewer in this case (tried using the console but didn't make it work). But there is always the alternative of taking a snapshot of the screen (the way to get it will depend on the OS you are running :)

fidbc gravatar imagefidbc ( 2013-01-02 09:03:02 -0500 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2013-01-01 13:23:32 -0500

Seen: 277 times

Last updated: Jan 01 '13