Ask Your Question
1

Missing Jmol Images when printing

asked 2011-10-05 00:11:17 +0200

ahausknecht gravatar image

updated 2011-10-05 00:43:36 +0200

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

Comments

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

kcrisman gravatar imagekcrisman ( 2014-12-03 21:42:06 +0200 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2011-10-06 13:55:43 +0200

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

Comments

There is in the new notebook, but we haven't finished the new notebook yet. You can go to test.sagenb.org 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: http://code.google.com/p/sagenb/issues/detail?id=56

Jason Grout gravatar imageJason Grout ( 2011-10-06 23:16:05 +0200 )edit
0

answered 2011-10-05 00:34:22 +0200

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
0

answered 2011-10-08 13:44:11 +0200

ahausknecht gravatar image

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

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

Stats

Asked: 2011-10-05 00:11:17 +0200

Seen: 409 times

Last updated: Oct 08 '11