ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 07 Feb 2018 21:35:32 +0100How do you get a 2d version of a 3d plot?https://ask.sagemath.org/question/40917/how-do-you-get-a-2d-version-of-a-3d-plot/ 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 !Thu, 01 Feb 2018 15:16:06 +0100https://ask.sagemath.org/question/40917/how-do-you-get-a-2d-version-of-a-3d-plot/Answer by tmonteil for <p>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 !</p>
https://ask.sagemath.org/question/40917/how-do-you-get-a-2d-version-of-a-3d-plot/?answer=40963#post-id-40963Assuming 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`.Sat, 03 Feb 2018 21:07:19 +0100https://ask.sagemath.org/question/40917/how-do-you-get-a-2d-version-of-a-3d-plot/?answer=40963#post-id-40963Comment by al for <p>Assuming you are using the <code>jsmol</code> applet, you can right-click nexgt to the image, then select <code>File</code>, then <code>Export</code>, then <code>Export png image</code>. If you are using <code>canvas3d</code> viewer, just right-click on the picture and select <code>save image as</code>.</p>
https://ask.sagemath.org/question/40917/how-do-you-get-a-2d-version-of-a-3d-plot/?comment=41019#post-id-41019I 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 sWed, 07 Feb 2018 21:35:23 +0100https://ask.sagemath.org/question/40917/how-do-you-get-a-2d-version-of-a-3d-plot/?comment=41019#post-id-41019Comment by al for <p>Assuming you are using the <code>jsmol</code> applet, you can right-click nexgt to the image, then select <code>File</code>, then <code>Export</code>, then <code>Export png image</code>. If you are using <code>canvas3d</code> viewer, just right-click on the picture and select <code>save image as</code>.</p>
https://ask.sagemath.org/question/40917/how-do-you-get-a-2d-version-of-a-3d-plot/?comment=41020#post-id-41020how0
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'Wed, 07 Feb 2018 21:35:32 +0100https://ask.sagemath.org/question/40917/how-do-you-get-a-2d-version-of-a-3d-plot/?comment=41020#post-id-41020