Ask Your Question
2

How to scale threejs graphs?

asked 10 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 8 years ago

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.

Preview: (hide)
link

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: 10 years ago

Seen: 1,490 times

Last updated: Feb 20 '17