Ask Your Question
1

Right click options not showing up for jsmol

asked 7 years ago

Nonlocal gravatar image

I'm using implicit_plot3d to create an image. Everything works great setting up the image and jsmol produces a nice looking plot. I right click to be able to interact with the plot such as zoom; however, when I highlight the zoom option (as well as many of the other options), the set of sub-options does not appear. I've tried in multiple browsers (firefox, chrome, and internet explorer), but I'm not having success with any of them. It appears the sub-menu options are trying to appear but they do not have space to display them. Any help would be greatly appreciated. I took a picture of it to make it a little easier to see, but I don't seem to have the karma to upload or link. It can be found at this address though: ibb.co/nwVDEb.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 7 years ago

eric_g gravatar image

Unfortunately, this is a known bug with the default 3D viewer (Jmol) in Jupyter notebook. Use instead the new threejs viewer, like in this example:

var('x y z')
T = RDF(golden_ratio)
F = 2 - (cos(x+T*y) + cos(x-T*y) + cos(y+T*z) + cos(y-T*z) + cos(z-T*x) + cos(z+T*x))
r = 4.77
G = implicit_plot3d(F, (x,-r,r), (y,-r,r), (z,-r,r), plot_points=40, color='darkkhaki')
show(G, viewer='threejs')

Then, you can perform the following actions with the mouse buttons:

  • left to rotate the object
  • middle to zoom in/out
  • right to translate the object
Preview: (hide)
link

Comments

Okay thanks for the info. I actually was trying threejs today, but I was having trouble using a colormap. Does threejs have this capability or is it only for single color schemes?

Nonlocal gravatar imageNonlocal ( 7 years ago )

Not at the moment...The list of currently supported options of theejs is here.

eric_g gravatar imageeric_g ( 7 years ago )

I see. Well thanks for the help. I appreciate it.

Nonlocal gravatar imageNonlocal ( 7 years ago )

for completeness, the issue is here https://trac.sagemath.org/ticket/19529

j.c. gravatar imagej.c. ( 7 years ago )

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 7 years ago

Seen: 437 times

Last updated: Dec 02 '17