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.Tue, 16 Nov 2021 18:21:36 +0100difference between x,y,z rangehttps://ask.sagemath.org/question/59761/difference-between-xyz-range/hi
in this code :
f(x,y)=x^2-3*x^4-x^2*y^2+2*x*y
h(x,y,z)=f(x,y)-z
implicit_plot3d(h, (x, -1,1), (y, -4, 4), (z, -1, 1.5),color="green",adaptive=True,mesh=True)
the result is very large in y because y-range are wider thant x and z-range in my example
how can i tell implicitplot3d to take a different scalar in y-range ?
i have tried to add plot_points=(1,4,1) because i have understood this in the help but it is not accepted
thanks
Tue, 16 Nov 2021 14:19:28 +0100https://ask.sagemath.org/question/59761/difference-between-xyz-range/Answer by ErWinz for <p>hi
in this code :</p>
<pre><code>f(x,y)=x^2-3*x^4-x^2*y^2+2*x*y
h(x,y,z)=f(x,y)-z
implicit_plot3d(h, (x, -1,1), (y, -4, 4), (z, -1, 1.5),color="green",adaptive=True,mesh=True)
</code></pre>
<p>the result is very large in y because y-range are wider thant x and z-range in my example
how can i tell implicitplot3d to take a different scalar in y-range ?
i have tried to add plot_points=(1,4,1) because i have understood this in the help but it is not accepted
thanks</p>
https://ask.sagemath.org/question/59761/difference-between-xyz-range/?answer=59773#post-id-59773thanks you it is perfect for meTue, 16 Nov 2021 18:21:36 +0100https://ask.sagemath.org/question/59761/difference-between-xyz-range/?answer=59773#post-id-59773Answer by rburing for <p>hi
in this code :</p>
<pre><code>f(x,y)=x^2-3*x^4-x^2*y^2+2*x*y
h(x,y,z)=f(x,y)-z
implicit_plot3d(h, (x, -1,1), (y, -4, 4), (z, -1, 1.5),color="green",adaptive=True,mesh=True)
</code></pre>
<p>the result is very large in y because y-range are wider thant x and z-range in my example
how can i tell implicitplot3d to take a different scalar in y-range ?
i have tried to add plot_points=(1,4,1) because i have understood this in the help but it is not accepted
thanks</p>
https://ask.sagemath.org/question/59761/difference-between-xyz-range/?answer=59765#post-id-59765I guess what you want is the `aspect_ratio` keyword argument, e.g. `aspect_ratio=(1/2,1/8,1/2.5)` will make the bounding box into a unit cube while keeping the ranges as you specified them.Tue, 16 Nov 2021 15:54:33 +0100https://ask.sagemath.org/question/59761/difference-between-xyz-range/?answer=59765#post-id-59765