Hello, I've started to use the convention of making dictionaries to hold my
datasets. But I haven't settled on an approach yet, and would like input
from people for how they a) handle their arrays of data, and b) how to
create pylab arrays from lists of lists, etc.

What I generally have is:

DataDict={var1:(x1,y1),var2:(x2,y2),var3:(x3,y3)}  ; where the x and y's are
generally lists.

Now that's nice, because I can cycle through the DataDict.keys() to batch
plot, etc. But how can I convert the whole dict into a single array
(assuming the lengths are all equal)? I would like:

myArray=
x1a,y1a,x2a,y2a,x3a,y3a
x1b,y1b,x2b,y2b,x3b,y3b
...
x1,z,y1z,x2z,y2z,x3z,x3z

Where:
myArray[:,0]= x1a...x1z
myArray[0,:]=x1a,y1a,x2a,y2a,x3a,y3a

and so forth...
Thanks!

-- 
View this message in context: 
http://www.nabble.com/Handling-data-and-creating-arrays-tp17834278p17834278.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to