Ask Your Question

How to scale threejs graphs?

asked 2014-09-21 06:23:12 -0500

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

answered 2017-02-19 17:59:44 -0500

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


Asked: 2014-09-21 06:23:12 -0500

Seen: 1,229 times

Last updated: Feb 19 '17