ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 27 Oct 2016 14:29:37 -0500How I can plot functions of the kind $f:\Bbb R\to\Bbb C$ in 3D properly?http://ask.sagemath.org/question/35284/how-i-can-plot-functions-of-the-kind-fbbb-rtobbb-c-in-3d-properly/What I can do to plot functions $f:\mathbb R\to\mathbb C$ in 3D?
By example, how to manage to plot $f(x)=i^x$ in the most direct (and simpler) way? Thank you.
--------------------------------------------
**UPDATE:** I get some kind of partial solution for the example above, using `parametric_plot3d`
parametric_plot3d([x,real_part(I^x),imag_part(I^x)],(x,-10,10),texture="red")
but my problem now is that the axes are not scaled properly, the option `scale=1`doesnt work. I found a partial solution using the option `aspect_ratio=[1,1,1]`but now the graph is too tiny (at least when I draw it in sagemathcell). To fix I tried to use the option `zoom=2` (or the mouse wheel) but does not work because the graph is not centered in the screen, check [this](https://sagecell.sagemath.org/?z=eJxFx0EKgCAQBdC7tFL4QdbaA3SGKBlyCCFRpgmk09cu3upVEsqskvZQz6JTNEuDMJ2hkqiZt2aRMh1_V5iG3g1wg4Vy01vYd8KxA12Vdw1CmopfHD4rnlKyH-0LtHUjpA==&lang=sage).
Then zooming a non-centered plot I cant see half of the plot because is out of the screen. At this moment I dont know a real fix for this.Thu, 27 Oct 2016 12:15:16 -0500http://ask.sagemath.org/question/35284/how-i-can-plot-functions-of-the-kind-fbbb-rtobbb-c-in-3d-properly/Comment by kcrisman for <p>What I can do to plot functions $f:\mathbb R\to\mathbb C$ in 3D?</p>
<p>By example, how to manage to plot $f(x)=i^x$ in the most direct (and simpler) way? Thank you.</p>
<hr>
<p><strong>UPDATE:</strong> I get some kind of partial solution for the example above, using <code>parametric_plot3d</code></p>
<pre><code>parametric_plot3d([x,real_part(I^x),imag_part(I^x)],(x,-10,10),texture="red")
</code></pre>
<p>but my problem now is that the axes are not scaled properly, the option <code>scale=1</code>doesnt work. I found a partial solution using the option <code>aspect_ratio=[1,1,1]</code>but now the graph is too tiny (at least when I draw it in sagemathcell). To fix I tried to use the option <code>zoom=2</code> (or the mouse wheel) but does not work because the graph is not centered in the screen, check <a href="https://sagecell.sagemath.org/?z=eJxFx0EKgCAQBdC7tFL4QdbaA3SGKBlyCCFRpgmk09cu3upVEsqskvZQz6JTNEuDMJ2hkqiZt2aRMh1_V5iG3g1wg4Vy01vYd8KxA12Vdw1CmopfHD4rnlKyH-0LtHUjpA==&lang=sage">this</a>.</p>
<p>Then zooming a non-centered plot I cant see half of the plot because is out of the screen. At this moment I dont know a real fix for this.</p>
http://ask.sagemath.org/question/35284/how-i-can-plot-functions-of-the-kind-fbbb-rtobbb-c-in-3d-properly/?comment=35290#post-id-35290Ah, I see what you mean - I am able to center is by rotating but it doesn't start there. I've seen that for others, I'm not sure what causes it as it isn't easily reproducible in every graph.Thu, 27 Oct 2016 14:29:37 -0500http://ask.sagemath.org/question/35284/how-i-can-plot-functions-of-the-kind-fbbb-rtobbb-c-in-3d-properly/?comment=35290#post-id-35290Comment by Masacroso for <p>What I can do to plot functions $f:\mathbb R\to\mathbb C$ in 3D?</p>
<p>By example, how to manage to plot $f(x)=i^x$ in the most direct (and simpler) way? Thank you.</p>
<hr>
<p><strong>UPDATE:</strong> I get some kind of partial solution for the example above, using <code>parametric_plot3d</code></p>
<pre><code>parametric_plot3d([x,real_part(I^x),imag_part(I^x)],(x,-10,10),texture="red")
</code></pre>
<p>but my problem now is that the axes are not scaled properly, the option <code>scale=1</code>doesnt work. I found a partial solution using the option <code>aspect_ratio=[1,1,1]</code>but now the graph is too tiny (at least when I draw it in sagemathcell). To fix I tried to use the option <code>zoom=2</code> (or the mouse wheel) but does not work because the graph is not centered in the screen, check <a href="https://sagecell.sagemath.org/?z=eJxFx0EKgCAQBdC7tFL4QdbaA3SGKBlyCCFRpgmk09cu3upVEsqskvZQz6JTNEuDMJ2hkqiZt2aRMh1_V5iG3g1wg4Vy01vYd8KxA12Vdw1CmopfHD4rnlKyH-0LtHUjpA==&lang=sage">this</a>.</p>
<p>Then zooming a non-centered plot I cant see half of the plot because is out of the screen. At this moment I dont know a real fix for this.</p>
http://ask.sagemath.org/question/35284/how-i-can-plot-functions-of-the-kind-fbbb-rtobbb-c-in-3d-properly/?comment=35289#post-id-35289@kcrisman indeed it is a problem, the position of the figure is not optimal at all, you zoom it (with the mouse or the option) and the figure is not centered in the screen, so you cant have a good vision of it. Rotating the figure is nice but still the figure not centered is a very bad thing.Thu, 27 Oct 2016 13:46:58 -0500http://ask.sagemath.org/question/35284/how-i-can-plot-functions-of-the-kind-fbbb-rtobbb-c-in-3d-properly/?comment=35289#post-id-35289Comment by kcrisman for <p>What I can do to plot functions $f:\mathbb R\to\mathbb C$ in 3D?</p>
<p>By example, how to manage to plot $f(x)=i^x$ in the most direct (and simpler) way? Thank you.</p>
<hr>
<p><strong>UPDATE:</strong> I get some kind of partial solution for the example above, using <code>parametric_plot3d</code></p>
<pre><code>parametric_plot3d([x,real_part(I^x),imag_part(I^x)],(x,-10,10),texture="red")
</code></pre>
<p>but my problem now is that the axes are not scaled properly, the option <code>scale=1</code>doesnt work. I found a partial solution using the option <code>aspect_ratio=[1,1,1]</code>but now the graph is too tiny (at least when I draw it in sagemathcell). To fix I tried to use the option <code>zoom=2</code> (or the mouse wheel) but does not work because the graph is not centered in the screen, check <a href="https://sagecell.sagemath.org/?z=eJxFx0EKgCAQBdC7tFL4QdbaA3SGKBlyCCFRpgmk09cu3upVEsqskvZQz6JTNEuDMJ2hkqiZt2aRMh1_V5iG3g1wg4Vy01vYd8KxA12Vdw1CmopfHD4rnlKyH-0LtHUjpA==&lang=sage">this</a>.</p>
<p>Then zooming a non-centered plot I cant see half of the plot because is out of the screen. At this moment I dont know a real fix for this.</p>
http://ask.sagemath.org/question/35284/how-i-can-plot-functions-of-the-kind-fbbb-rtobbb-c-in-3d-properly/?comment=35288#post-id-35288I don't find the zoom to be a problem, because I always zoom in and out anyway, and rotate it etc. - on my laptop using a gesture, I think with a mouse with a wheel you can use that, without these there is still right-clicking and choosing "zoom". By the way, I don't think that keyword will work without the jmol viewer.Thu, 27 Oct 2016 13:29:55 -0500http://ask.sagemath.org/question/35284/how-i-can-plot-functions-of-the-kind-fbbb-rtobbb-c-in-3d-properly/?comment=35288#post-id-35288Comment by Masacroso for <p>What I can do to plot functions $f:\mathbb R\to\mathbb C$ in 3D?</p>
<p>By example, how to manage to plot $f(x)=i^x$ in the most direct (and simpler) way? Thank you.</p>
<hr>
<p><strong>UPDATE:</strong> I get some kind of partial solution for the example above, using <code>parametric_plot3d</code></p>
<pre><code>parametric_plot3d([x,real_part(I^x),imag_part(I^x)],(x,-10,10),texture="red")
</code></pre>
<p>but my problem now is that the axes are not scaled properly, the option <code>scale=1</code>doesnt work. I found a partial solution using the option <code>aspect_ratio=[1,1,1]</code>but now the graph is too tiny (at least when I draw it in sagemathcell). To fix I tried to use the option <code>zoom=2</code> (or the mouse wheel) but does not work because the graph is not centered in the screen, check <a href="https://sagecell.sagemath.org/?z=eJxFx0EKgCAQBdC7tFL4QdbaA3SGKBlyCCFRpgmk09cu3upVEsqskvZQz6JTNEuDMJ2hkqiZt2aRMh1_V5iG3g1wg4Vy01vYd8KxA12Vdw1CmopfHD4rnlKyH-0LtHUjpA==&lang=sage">this</a>.</p>
<p>Then zooming a non-centered plot I cant see half of the plot because is out of the screen. At this moment I dont know a real fix for this.</p>
http://ask.sagemath.org/question/35284/how-i-can-plot-functions-of-the-kind-fbbb-rtobbb-c-in-3d-properly/?comment=35287#post-id-35287@kcrisman I updated all the infor that I have at the moment, but there are other problems that I dont know how to fix them by now.Thu, 27 Oct 2016 13:13:36 -0500http://ask.sagemath.org/question/35284/how-i-can-plot-functions-of-the-kind-fbbb-rtobbb-c-in-3d-properly/?comment=35287#post-id-35287Comment by kcrisman for <p>What I can do to plot functions $f:\mathbb R\to\mathbb C$ in 3D?</p>
<p>By example, how to manage to plot $f(x)=i^x$ in the most direct (and simpler) way? Thank you.</p>
<hr>
<p><strong>UPDATE:</strong> I get some kind of partial solution for the example above, using <code>parametric_plot3d</code></p>
<pre><code>parametric_plot3d([x,real_part(I^x),imag_part(I^x)],(x,-10,10),texture="red")
</code></pre>
<p>but my problem now is that the axes are not scaled properly, the option <code>scale=1</code>doesnt work. I found a partial solution using the option <code>aspect_ratio=[1,1,1]</code>but now the graph is too tiny (at least when I draw it in sagemathcell). To fix I tried to use the option <code>zoom=2</code> (or the mouse wheel) but does not work because the graph is not centered in the screen, check <a href="https://sagecell.sagemath.org/?z=eJxFx0EKgCAQBdC7tFL4QdbaA3SGKBlyCCFRpgmk09cu3upVEsqskvZQz6JTNEuDMJ2hkqiZt2aRMh1_V5iG3g1wg4Vy01vYd8KxA12Vdw1CmopfHD4rnlKyH-0LtHUjpA==&lang=sage">this</a>.</p>
<p>Then zooming a non-centered plot I cant see half of the plot because is out of the screen. At this moment I dont know a real fix for this.</p>
http://ask.sagemath.org/question/35284/how-i-can-plot-functions-of-the-kind-fbbb-rtobbb-c-in-3d-properly/?comment=35285#post-id-35285For reference, see also at http://math.stackexchange.com/questions/1987834/math-software-to-plot-functions-of-the-kind-f-bbb-r-to-bbb-c-in-3dThu, 27 Oct 2016 13:01:38 -0500http://ask.sagemath.org/question/35284/how-i-can-plot-functions-of-the-kind-fbbb-rtobbb-c-in-3d-properly/?comment=35285#post-id-35285