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.Mon, 29 Jan 2018 20:17:59 +0100How can you change the viewpoint of perspective (to infinity) in a 3d plot?https://ask.sagemath.org/question/40841/how-can-you-change-the-viewpoint-of-perspective-to-infinity-in-a-3d-plot/I am plotting a function with a large z coordinate, so it has a rectangular solid box around it which is square in crossection and very long in height. If you rotate it to view from the end you don't see the orthogonal projection onto the square, since the solid framing the graph is rendered inperspective from a viewpoint which is not infinity.
I tried aspect_ration {1,1,1] but that doesn't correct it. Any ideas ???
PS I'm running this ion the Cloud - I can't get 3d plots to run in my own notebook yet, and anyway right now my notebook isn't working at all- see other question !Mon, 29 Jan 2018 11:43:53 +0100https://ask.sagemath.org/question/40841/how-can-you-change-the-viewpoint-of-perspective-to-infinity-in-a-3d-plot/Comment by dan_fulea for <p>I am plotting a function with a large z coordinate, so it has a rectangular solid box around it which is square in crossection and very long in height. If you rotate it to view from the end you don't see the orthogonal projection onto the square, since the solid framing the graph is rendered inperspective from a viewpoint which is not infinity.
I tried aspect_ration {1,1,1] but that doesn't correct it. Any ideas ???</p>
<p>PS I'm running this ion the Cloud - I can't get 3d plots to run in my own notebook yet, and anyway right now my notebook isn't working at all- see other question !</p>
https://ask.sagemath.org/question/40841/how-can-you-change-the-viewpoint-of-perspective-to-infinity-in-a-3d-plot/?comment=40843#post-id-40843Please give us some code, using a constant function or something like
$$(x,y)\to \min( \ \exp(1/(x^2+y^2))\ ,\ 10^6\ )\ ,$$
and the name of the viewer.Mon, 29 Jan 2018 12:52:41 +0100https://ask.sagemath.org/question/40841/how-can-you-change-the-viewpoint-of-perspective-to-infinity-in-a-3d-plot/?comment=40843#post-id-40843Comment by pang for <p>I am plotting a function with a large z coordinate, so it has a rectangular solid box around it which is square in crossection and very long in height. If you rotate it to view from the end you don't see the orthogonal projection onto the square, since the solid framing the graph is rendered inperspective from a viewpoint which is not infinity.
I tried aspect_ration {1,1,1] but that doesn't correct it. Any ideas ???</p>
<p>PS I'm running this ion the Cloud - I can't get 3d plots to run in my own notebook yet, and anyway right now my notebook isn't working at all- see other question !</p>
https://ask.sagemath.org/question/40841/how-can-you-change-the-viewpoint-of-perspective-to-infinity-in-a-3d-plot/?comment=40847#post-id-40847That's related to the question:
https://ask.sagemath.org/question/38491/can-i-generate-3d-plots-in-isometric-projection/
I don't know any simple way...Mon, 29 Jan 2018 15:08:22 +0100https://ask.sagemath.org/question/40841/how-can-you-change-the-viewpoint-of-perspective-to-infinity-in-a-3d-plot/?comment=40847#post-id-40847Answer by tmonteil for <p>I am plotting a function with a large z coordinate, so it has a rectangular solid box around it which is square in crossection and very long in height. If you rotate it to view from the end you don't see the orthogonal projection onto the square, since the solid framing the graph is rendered inperspective from a viewpoint which is not infinity.
I tried aspect_ration {1,1,1] but that doesn't correct it. Any ideas ???</p>
<p>PS I'm running this ion the Cloud - I can't get 3d plots to run in my own notebook yet, and anyway right now my notebook isn't working at all- see other question !</p>
https://ask.sagemath.org/question/40841/how-can-you-change-the-viewpoint-of-perspective-to-infinity-in-a-3d-plot/?answer=40854#post-id-40854To get isometric projection when viewing 3d plots on the notebook (with jsmol):
- right_click on the background close to the picture to let a menu appear
- select "style" in the menu
- uncheck the "Perspective Depth" box
Mon, 29 Jan 2018 18:10:03 +0100https://ask.sagemath.org/question/40841/how-can-you-change-the-viewpoint-of-perspective-to-infinity-in-a-3d-plot/?answer=40854#post-id-40854Comment by al for <p>To get isometric projection when viewing 3d plots on the notebook (with jsmol):</p>
<ul>
<li>right_click on the background close to the picture to let a menu appear</li>
<li>select "style" in the menu</li>
<li>uncheck the "Perspective Depth" box</li>
</ul>
https://ask.sagemath.org/question/40841/how-can-you-change-the-viewpoint-of-perspective-to-infinity-in-a-3d-plot/?comment=40869#post-id-40869Ooops, in fact what I want is apparently called "orthographic projection", not isometric ! Any ideas?Mon, 29 Jan 2018 19:44:36 +0100https://ask.sagemath.org/question/40841/how-can-you-change-the-viewpoint-of-perspective-to-infinity-in-a-3d-plot/?comment=40869#post-id-40869Comment by al for <p>To get isometric projection when viewing 3d plots on the notebook (with jsmol):</p>
<ul>
<li>right_click on the background close to the picture to let a menu appear</li>
<li>select "style" in the menu</li>
<li>uncheck the "Perspective Depth" box</li>
</ul>
https://ask.sagemath.org/question/40841/how-can-you-change-the-viewpoint-of-perspective-to-infinity-in-a-3d-plot/?comment=40868#post-id-40868Thanks for the answer! I am using the Cloud with the command
show(list_plot3d,(x,-2,2),(y,-2,2),aspect_ratio = [1,1,1])
However would rather run this on my notebook (once my notebook is running again- see my other question !) Could you give me some hints as to how to get 3d plots working on the notebook- which other software should I to add to the basic SAGEmath installation? And is there good information available on this?
(and do you recommend jsmol/jmol for mathematics graphics? )Mon, 29 Jan 2018 19:39:54 +0100https://ask.sagemath.org/question/40841/how-can-you-change-the-viewpoint-of-perspective-to-infinity-in-a-3d-plot/?comment=40868#post-id-40868Comment by al for <p>To get isometric projection when viewing 3d plots on the notebook (with jsmol):</p>
<ul>
<li>right_click on the background close to the picture to let a menu appear</li>
<li>select "style" in the menu</li>
<li>uncheck the "Perspective Depth" box</li>
</ul>
https://ask.sagemath.org/question/40841/how-can-you-change-the-viewpoint-of-perspective-to-infinity-in-a-3d-plot/?comment=40870#post-id-40870In fact, what I just noticed is that the viewpoint changes as you zoom in. So when you zoom out, say of a cube, it will approach what I want (orthographic projection) as the viewpoint approaches infinity. As you zoom close, you see two nested squares connected by edges, with the back face much smaller as you get close. The problem now is that when I zoom away, the figure itself is getting too small !Mon, 29 Jan 2018 20:17:59 +0100https://ask.sagemath.org/question/40841/how-can-you-change-the-viewpoint-of-perspective-to-infinity-in-a-3d-plot/?comment=40870#post-id-40870