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.Tue, 26 Mar 2019 14:51:02 +0100jmol in sage notebook on mint 19https://ask.sagemath.org/question/45925/jmol-in-sage-notebook-on-mint-19/Hello,
I used self compiled sage the last years,
now sage is packed with ubuntu/mint so I use the debian package.
I have SageMath version 8.1, Release Date: 2017-12-07 on Mint 19.2.
I need 3d vektor plots in sagenotebook.
But I get following error in notebook:
XXXXXXXXXXXXXX
Interactive 3D plots using the default viewer do not work in SageNB, because JSmol cannot currently be packaged for Debian. See the README.source of the jmol package for more details on this situation. You have the following alternative options:
View an interactive WebGL-based plot by giving the option viewer='threejs'. This should work out-of-the box on Firefox, but may require you to adjust some settings in Chromium - see chrome://flags for options and chrome://gpu for status. In both cases, the functionality also depends on your graphics hardware and drivers, but support should exist in most cases.
View a less sophisticated interactive plot that does not require WebGL, by giving the option viewer='canvas3d'.
View a non-interactive plot by giving the option viewer='tachyon'.
Use the default viewer (Jmol) from the SageMath command-line interface, instead of the notebook.
XXXXXXXXXXXXXX
Nothing of the suggestions works. So I installed Java 8 and then I can run jmol applet from sage commandline. But that's not what I want.
I also tried to compile Sage 8.7 myself. Same problem.
I don't need JSMOL viewer in notebool. JMOL Java applet would be best. In older Sage Version 7.5.1 on an ubuntu 12.04 it runs fine. what can I do that it also runs in on my mint machine?
Can I replace jmol in the sourcedirectory and compile?
How?
How can I change viewer between JSMOL and JMOL?
Any help is appreciated.
Any ideas?
Thank youmsageTue, 26 Mar 2019 14:51:02 +0100https://ask.sagemath.org/question/45925/Right 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.NonlocalFri, 01 Dec 2017 23:28:06 +0100https://ask.sagemath.org/question/39903/How to export a 3D plot to a jpg/png file (OSX)https://ask.sagemath.org/question/34559/how-to-export-a-3d-plot-to-a-jpgpng-file-osx/ Hi everybody, I've got some problems with saving/exporting images. This is my code:
var ('x y z')
#Define a 3d curve as the intersection of 2 surfaces
#(but not explicit in z so we must use implicit plots)
# Let's plot
xmin=-3; xmax=3; ymin=-1; ymax=5; zmin=-3; zmax=3;
# Axes
Ax=line3d(([xmin,0,0],[xmax,0,0]), thickness=2, color='red')
Ay=line3d(([0,ymin,0],[0,ymax,0]), thickness=2, color='blue')
Az=line3d(([0,0,zmin],[0,0,zmax]), thickness=2, color='green')
# Surfaces
S1=implicit_plot3d(y==x^2+z^2,(x,xmin,xmax),(y,ymin,ymax),(z,zmin,zmax), opacity=0.4, color='yellow')
S2=implicit_plot3d(z==y/2,(x,xmin,xmax),(y,ymin,ymax),(z,zmin,zmax), opacity=0.4, color='purple')
show(S1+S2+Ax+Ay+Az, aspect_ratio=[1,1,1])
I just wanted to execute the code, rotate the plot right from the graphics and export the image as a png file. This should by done by right-clicking on the plot and chosing export to png from the menu... Unfortunately, the output is a blank screen with just the string "Invalid JSmol request: saveFile"
Any suggestion, please?
I'm working with the OS X version, and I'm a total newbie...
Thanks in advice,
MauromaurosiriguMon, 22 Aug 2016 13:29:09 +0200https://ask.sagemath.org/question/34559/