Ask Your Question
2

How to scale threejs graphs?

asked 2014-09-21 13:23:12 +0100

Ingo Dahn gravatar image

Hi, jmol works nicely in scaling 3d graphs in sagecell, however threejs does not. Even manual scaling using aspect_ratio does not seem to work; aspect_ratio is apparently ignored. Example: %var x,y g=plot3d(x^3*y^3, (x,-2,2),(y,-2,2),aspect_ratio=[1.0,1.0,.001]) threejs(g) Is there another way to scale graphs with threejs? Best Ingo

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-02-20 00:59:44 +0100

As of Sage 7.5 there is a native Three.js viewer that respects aspect_ratio. You can invoke it by adding the optionviewer='threejs' to show() or any 3D object.

Since the new viewer is a work in progress, feedback is welcome.

edit flag offensive delete link more

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: 2014-09-21 13:23:12 +0100

Seen: 1,467 times

Last updated: Feb 20 '17