First time here? Check out the FAQ!

Ask Your Question
1

Missing Jmol Images when printing

asked 13 years ago

ahausknecht gravatar image

updated 13 years ago

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

Preview: (hide)

Comments

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

kcrisman gravatar imagekcrisman ( 10 years ago )

3 Answers

Sort by » oldest newest most voted
1

answered 13 years ago

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.

Preview: (hide)
link

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 ( 13 years ago )
0

answered 13 years ago

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.

Preview: (hide)
link
0

answered 13 years ago

ahausknecht gravatar image

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

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

Stats

Asked: 13 years ago

Seen: 512 times

Last updated: Oct 08 '11