ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 03 Mar 2018 14:05:53 +0100Right click options not showing up for jsmolhttps://ask.sagemath.org/question/39903/right-click-options-not-showing-up-for-jsmol/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.Fri, 01 Dec 2017 23:28:06 +0100https://ask.sagemath.org/question/39903/right-click-options-not-showing-up-for-jsmol/Answer by eric_g for <p>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.</p>
https://ask.sagemath.org/question/39903/right-click-options-not-showing-up-for-jsmol/?answer=39912#post-id-39912Unfortunately, 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 objectSat, 02 Dec 2017 14:43:01 +0100https://ask.sagemath.org/question/39903/right-click-options-not-showing-up-for-jsmol/?answer=39912#post-id-39912Comment by j.c. for <p>Unfortunately, this is a known bug with the default 3D viewer (Jmol) in Jupyter notebook. Use instead the new <code>threejs</code> viewer, like in this example:</p>
<pre><code>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')
</code></pre>
<p>Then, you can perform the following actions with the mouse buttons:</p>
<ul>
<li>left to rotate the object</li>
<li>middle to zoom in/out</li>
<li>right to translate the object</li>
</ul>
https://ask.sagemath.org/question/39903/right-click-options-not-showing-up-for-jsmol/?comment=41379#post-id-41379for completeness, the issue is here https://trac.sagemath.org/ticket/19529Sat, 03 Mar 2018 14:05:53 +0100https://ask.sagemath.org/question/39903/right-click-options-not-showing-up-for-jsmol/?comment=41379#post-id-41379Comment by Nonlocal for <p>Unfortunately, this is a known bug with the default 3D viewer (Jmol) in Jupyter notebook. Use instead the new <code>threejs</code> viewer, like in this example:</p>
<pre><code>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')
</code></pre>
<p>Then, you can perform the following actions with the mouse buttons:</p>
<ul>
<li>left to rotate the object</li>
<li>middle to zoom in/out</li>
<li>right to translate the object</li>
</ul>
https://ask.sagemath.org/question/39903/right-click-options-not-showing-up-for-jsmol/?comment=39913#post-id-39913Okay 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?Sat, 02 Dec 2017 15:56:59 +0100https://ask.sagemath.org/question/39903/right-click-options-not-showing-up-for-jsmol/?comment=39913#post-id-39913Comment by eric_g for <p>Unfortunately, this is a known bug with the default 3D viewer (Jmol) in Jupyter notebook. Use instead the new <code>threejs</code> viewer, like in this example:</p>
<pre><code>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')
</code></pre>
<p>Then, you can perform the following actions with the mouse buttons:</p>
<ul>
<li>left to rotate the object</li>
<li>middle to zoom in/out</li>
<li>right to translate the object</li>
</ul>
https://ask.sagemath.org/question/39903/right-click-options-not-showing-up-for-jsmol/?comment=39917#post-id-39917Not at the moment...The list of currently supported options of theejs is [here](http://doc.sagemath.org/html/en/reference/plot3d/threejs.html).Sat, 02 Dec 2017 17:23:45 +0100https://ask.sagemath.org/question/39903/right-click-options-not-showing-up-for-jsmol/?comment=39917#post-id-39917Comment by Nonlocal for <p>Unfortunately, this is a known bug with the default 3D viewer (Jmol) in Jupyter notebook. Use instead the new <code>threejs</code> viewer, like in this example:</p>
<pre><code>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')
</code></pre>
<p>Then, you can perform the following actions with the mouse buttons:</p>
<ul>
<li>left to rotate the object</li>
<li>middle to zoom in/out</li>
<li>right to translate the object</li>
</ul>
https://ask.sagemath.org/question/39903/right-click-options-not-showing-up-for-jsmol/?comment=39922#post-id-39922I see. Well thanks for the help. I appreciate it.Sun, 03 Dec 2017 05:20:33 +0100https://ask.sagemath.org/question/39903/right-click-options-not-showing-up-for-jsmol/?comment=39922#post-id-39922