Prahas,
If I read it correctly, it looks like all of your x,y,z values are stored in
x_t (and computed before plotting). See
http://docs.scipy.org/doc/numpy/reference/generated/numpy.savetxt.html
to output these to a file, if so desired.
-Sterling
On Mar 11, 2015, at 8:07AM, Prahas David
Hi,
Given the Lorenz code shared yesterday, is there a way
to generate a log file of the x,y,z points generated?
Thanks in advance.
--Prahas
In case you deleted the code:
import numpy as np
from scipy import integrate
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import
What 3D array? There shouldn't be any 3D arrays. I suspect that x_t is only
accidentally 3d by having a shape like (N, M, 1) or (1, N, M).
Ben Root
On Wed, Mar 11, 2015 at 5:05 PM, Prahas David Nafissian
prahas.mu...@gmail.com wrote:
Hello,
Solved the write issue.
I tried numpy savetxt
Hello,
Solved the write issue.
I tried numpy savetxt but it chokes on 3D arrays.
So I'm doing this:
x_t.tofile('test3.txt',sep= ,format=%f)
Only issue -- no end-of-lines. But I can write a quick
Pascal program to fix this...
Once again, thanks!
Sometimes a simple text file really does the trick... However, you might
consider saving yourself some future pain by learning some non-text based
storage formats. In the past, I used text files all the time, and they
quickly became limiting, as you've noticed.
I personally like HDF files. There