Re: [Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-08 Thread peter websdell
try this: list = numpy.array([0.66877509, 0.58785363, 0.32387598, 0.16877509, 0.48785363, 0.22387598, 0.96877509, 0.18785363, 0.52387598]) Pete 2008/8/8 stuartornum <[EMAIL PROTECTED]> > > Thanks again Pete for your help. > > I have numpy imported, and here is what my code looks like: > > #

Re: [Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-08 Thread peter websdell
rand() produces a numpy array, so long as numpy is imported into the namespace. I was simply using the random numbers as example data. In your case you would take your 1x100 vector of heat data and re-shape it to a 10x10 array. data=data.reshape(10,10) Pete 2008/8/8 stuartornum <[EMAIL PROTEC

Re: [Matplotlib-users] Contour/Contourf Plot Heatmap - Grid - Multiple Items

2008-08-07 Thread peter websdell
Someone more knowlegeable than me may corrct me here, but the code for getting your data into a grid could be greatly simplified to: X = array([0,1,2,3,4,5,6,7,8,9,]) Y = array([0,1,2,3,4,5,6,7,8,9,]) Z = ListValues.reshape(10,10) than you could use something like imshow() to show the data withou

Re: [Matplotlib-users] Filled contour transparency issue

2008-08-06 Thread peter websdell
No michael, that is what I was suggesting. Shame it doesn't work. I'm looking at using Enthoughts Chaco to do it. It's takes a bit more to get it doing what I want though, and I don't know if it does alpha transparency at all. Thanks for your help. Pete 2008/8/6 Michael Droettboom <[EMAIL PROTE