[SciPy-user] 3d plotting not working as expected
drohr at few.vu.nl
drohr at few.vu.nl
Sat Jul 16 10:26:51 CDT 2005
This worked for me:
from scipy import *
t = arange(0.0,6.0*pi,pi/12.0)
x = cos(t)
y = sin(t)
a = zip(t,x,y)
gplt.plot3d((a,))
changing the order of t,x and y when zipping will change the orientation of your
spiral
Dan
David Noriega wrote:
> I think its my understanding of how gplt works is what
> is causing my problem. I've been trying to do some
> parametric equation graphing, which I can get to work
> very nicly. So I decided to try something else. I
> wanted to show it in 3d, with the z axis being time.
>
> Here is my example, its a particle moving in a
> circle.
>
> from scipy import *
> t=arange(0.0, 6.0*pi, pi/12.0)
> x=cos(t)
> y=sin(t)
>
> Now how can I graph it so it makes a spiral(A particle
> moving in a circle in time makes a spiral)?
>
> Don't fear that philosophy's an impious way
> --superstition's more likely to lead folk astray.
>
> ~Lucretius, De rerum natura, Book One
>
> http://mindbender.deviantart.com
>
>
>
> ____________________________________________________
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
>
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
>
More information about the SciPy-user
mailing list