Ask Your Question

Missing Jmol Images when printing

asked 2011-10-04 17:11:17 -0600

ahausknecht gravatar image

updated 2011-10-04 17:43:36 -0600

benjaminfjones gravatar image

When I attempt to print a notebook worksheet using either Safari or Chrome containing four plot3D-Jmol images, several are black (not displayed). Is this a memory problem? Is there a way to force the plots to be static images instead of live JMol applets.

Sorry to say this but if this is not fixed I won't be able to use Sage for undergraduate teaching as I must be able to post PDF's of examples easily!

Prof. Adam Hausknecht Department of Mathematics UMass Dartmouth

edit retag flag offensive close merge delete


Very belated comment - this should now be possible in Sage 6.4 as well!

kcrisman gravatar imagekcrisman ( 2014-12-03 14:42:06 -0600 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2011-10-06 06:55:43 -0600

ahausknecht gravatar image

Hi all

I found a workaround for my problem. I exported all the JMol plot3d images and then copied and pasted them into the same worksheet as jpegs. I then removed all the output from the worksheet leaving the Sage plotting commands and the jpegs. Now when I print and save the output as a PDF all the plots become part of the PDF.

Note: Pasting the images does not seem to work with a recent version of Firefox but does work with Safari.

Perhaps there is away to automatically change all the JMol 3d plots to jpegs in place. It certainly would be a nice feature.

Thanks for the info about other ways to generate 3D plots.

edit flag offensive delete link more


There is in the new notebook, but we haven't finished the new notebook yet. You can go to and try it there. You still have to do each jmol separately, but you can click on "Advanced controls" and then "sleep" each plot (which replaces it with a jpg image). I agree that clicking "Print" should do this automatically. I've opened a ticket for this here:

Jason Grout gravatar imageJason Grout ( 2011-10-06 16:16:05 -0600 )edit

answered 2011-10-08 06:44:11 -0600

ahausknecht gravatar image

Thanks Jason for the ticket and how to try the new notebook!

edit flag offensive delete link more

answered 2011-10-04 17:34:22 -0600

benjaminfjones gravatar image

To make static images, you can change the viewer option to 'tachyon' or 'canvas3d':

x,y= var('x,y')
plot3d(x^2*sin(y)-y^2*cos(x), (x,-6,6), (y,-6,6), viewer='tachyon')

There are several good published worksheets on 3d plotting, for example this one.

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


Asked: 2011-10-04 17:11:17 -0600

Seen: 159 times

Last updated: Oct 08 '11