Ask Your Question
2

3d graphics not displayed

asked 6 years ago

MathF13 gravatar image

updated 6 years ago

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.

Preview: (hide)

Comments

1

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

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 74.1.96.24 it is ok using JMOLL default or ThreeJs. look the 2 images on MS forum (click on question in above comment.

ortollj gravatar imageortollj ( 6 years ago )

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

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

MathF13 gravatar imageMathF13 ( 6 years ago )

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

ortollj gravatar imageortollj ( 6 years ago )

1 Answer

Sort by Β» oldest newest most voted
1

answered 6 years ago

Iguananaut gravatar image

The default "jmol" viewer has basically never worked on Windows: see https://github.com/sagemath/sage-wind...

In a future release we hope to make threejs the default but there are still some unresolved issues with threejs: https://trac.sagemath.org/ticket/26410

Preview: (hide)
link

Comments

Sorry Iguananaut , but JMOL works now in W10 with the Windows Insider latest version of Edge: Version 74.1.96.24 . 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 ( 6 years ago )

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

ortollj gravatar imageortollj ( 6 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

3 followers

Stats

Asked: 6 years ago

Seen: 2,980 times

Last updated: Apr 15 '19