Ask Your Question
0

How do you get a 2d version of a 3d plot?

asked 7 years ago

al gravatar image

I am working on Cocalc. I would like to get a nice pdf of the view I want after rotating and zooming. Yes, taking a screenshot works, but is there a better method? Thanks !

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 7 years ago

tmonteil gravatar image

updated 7 years ago

Assuming you are using the jsmol applet, you can right-click nexgt to the image, then select File, then Export, then Export png image. If you are using canvas3d viewer, just right-click on the picture and select save image as.

Preview: (hide)
link

Comments

I am actually using three.js (it says "canvas" below the plot). I tried Tachyon and got an image of much worse quality, and tried jmol but got an error message: Error in lines 76-76 Traceback (most recent call last): File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 1013, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "sage/plot/plot3d/base.pyx", line 1478, in sage.plot.plot3d.base.Graphics3d.show (build/cythonized/sage/plot/plot3d/base.c:21473) dm.display_immediately(self, **kwds) File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2678, in show s = show0(objs, combine_all=True) File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2639, in s

al gravatar imageal ( 7 years ago )

how0 b = show0(a) File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2625, in show0 salvus.threed(obj, **kwds) TypeError: threed() got an unexpected keyword argument 'viewer'

al gravatar imageal ( 7 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

1 follower

Stats

Asked: 7 years ago

Seen: 382 times

Last updated: Feb 03 '18