Ask Your Question
0

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

asked 2018-02-01 15:16:06 +0100

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 21:07:19 +0100

tmonteil gravatar image

updated 2018-02-03 21:10:42 +0100

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 21:35:23 +0100 )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 21:35:32 +0100 )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 15:16:06 +0100

Seen: 346 times

Last updated: Feb 03 '18