Ask Your Question
0

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

asked 2018-02-01 08:16:06 -0500

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 !

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-02-03 14:07:19 -0500

tmonteil gravatar image

updated 2018-02-03 14:10:42 -0500

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.

edit flag offensive delete link more

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 ( 2018-02-07 14:35:23 -0500 )edit

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 ( 2018-02-07 14:35:32 -0500 )edit

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: 2018-02-01 08:16:06 -0500

Seen: 59 times

Last updated: Feb 03