Ask Your Question

3d graphics not displayed

asked 2019-04-14 00:33:42 +0100

MathF13 gravatar image

updated 2019-04-15 07:44:21 +0100

slelievre gravatar image

I am new to Sage. I use SageMath 8.6 on Windows 10. 2D plotting works, but not 3d. For example this produced no graphics but just the: π™Άπš›πšŠπš™πš‘πš’πšŒπšœπŸΉπšπ™Ύπš‹πš“πšŽπšŒπš

sage: x, y = var('x,y')
sage: g = plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))
sage: show(g)

I use Chrome.

With the suggested option:

sage: show(g,figsize=8, viewer="threejs", frame=False,axes=True)

it works now!

It works also with:

sage: show(g,figsize=8, viewer="threejs", axes=True)

And with:

sage: show(g,figsize=8, viewer="threejs")

It looks like viewer option should be there for 3D to work on windows 10 with Chrome.

SageMath is great! With Python it is much more friendlier than Mathematica.

edit retag flag offensive close merge delete



Could you precise which WEB browser do you use ? because for me the code does not work in Edge but works in Chrome. Strangely, there was a time or in Edge it worked when I specified the viewer . like that:

show(g, figsize=8, viewer="threejs", frame=False,axes=True)

But not anymore !.

I Just ask a question on MS forum: question

ortollj gravatar imageortollj ( 2019-04-14 08:21:33 +0100 )edit

it is working now for me with the Edge browser, but I made 2 changes, and I do not know if either 1 is enough or if both are needed! modification 1: allow in the firewall "3D display" change 2: download as Windows Insider the latest version of Edge: Version it is ok using JMOLL default or ThreeJs. look the 2 images on MS forum (click on question in above comment.

ortollj gravatar imageortollj ( 2019-04-14 13:28:11 +0100 )edit

What version of Java did you install ? On Linux, our version of jmol works with openjdk 8, but win't work with openjdk 9, 10 or 11... An excruciating pain in th a$$, only partially relieved by threejs, which has its share of problems (shading and transparency, among others).

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2019-04-14 21:44:35 +0100 )edit

@Emmanuel Charpentier, I see that I have Oracle Java version 8

MathF13 gravatar imageMathF13 ( 2019-04-15 01:20:31 +0100 )edit

same version as mine : Java 8 upgrade 191 (build 1.8.0_191-b12)

ortollj gravatar imageortollj ( 2019-04-15 07:53:18 +0100 )edit

1 Answer

Sort by Β» oldest newest most voted

answered 2019-04-15 14:30:42 +0100

Iguananaut gravatar image

The default "jmol" viewer has basically never worked on Windows: see

In a future release we hope to make threejs the default but there are still some unresolved issues with threejs:

edit flag offensive delete link more


Sorry Iguananaut , but JMOL works now in W10 with the Windows Insider latest version of Edge: Version . see the image (click on the link question in my comment above) .But it is true that jmol did not work with older version of Edge. with the simple command show(g), besides, I can see JSMOL colored writing displaying just before displaying the 3D plot, using simple show(g)

ortollj gravatar imageortollj ( 2019-04-15 15:32:10 +0100 )edit

Oops ! I mean it works in notebook !, I did not try in console, sorry

ortollj gravatar imageortollj ( 2019-04-15 15:48:05 +0100 )edit

Your Answer

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

Add Answer

Question Tools



Asked: 2019-04-14 00:33:42 +0100

Seen: 1,079 times

Last updated: Apr 15 '19