Re: [Matplotlib-users] Set a 3-D point?

2015-03-30 Thread Prahas David Nafissian
Hi, For those of you following the trials and tribulations of moi, I hacked the solution. The assignment is: x0 = [ [-1.0,0.0,0.5] ] I printed the orig x0. Printed mine. Noticed mine was missing a set of brackets. Tried it. Success! --Prahas On Sun, Mar 29, 2015 at 10:07 AM, Prahas

Re: [Matplotlib-users] Set a 3-D point?

2015-03-29 Thread Ryan Nelson
Prahas, You're example is a little strange because when I set `x0 = (-1,0,0.5)`, your function works fine on Python 2. Are you trying to set t0? Note, your function does not compile on Python 3. You should try to be more explicit with that first argument in that function. For example, does the

[Matplotlib-users] Set a 3-D point?

2015-03-29 Thread Prahas David Nafissian
Hi Mat-Plotters, I'm trying to modify the below code so that I can set the initial conditions to (-1,0,0.5). The code below randomly sets the initial conditions: ** # I changed the equation -- it's not Lorenz. N_trajectories = 1 def lorentz_deriv((x, y, z), t0, aa=1.1, yy=0.87):