Re: [Matplotlib-users] plotting a contour from dicrete data

2007-07-11 Thread Mark Bakker
Viraj and Jeff - Maybe one extension of Jeff's answer. The process works as long as x, y, and z are 2D arrays of the same size and shape. Hence, x and y don't have to form a rectangular grid. I have used this feature regularly for conformal mapping. And it makes a lot of sense. The contour

Re: [Matplotlib-users] plotting a contour from dicrete data

2007-07-11 Thread Scott Sinclair
That is very cool, I hadn't thought of it! So what you're saying is that any transformation (a complex distortion) of a regular rectangular grid is fine. The fact that the grid's 'pixels' are four sided quadrilaterals satisfies this condition and the contour algorithm works... Cheers, Scott

Re: [Matplotlib-users] plotting a contour from dicrete data

2007-07-11 Thread Mark Bakker
I thought it was cool the first time I saw it. Just try something simple from pylab import * x,y = meshgrid(linspace(-5,5,101),linspace(0,5,101)) h = y z = x + complex(0,1)*y znew = z**0.25 # Doing a simple conformal map xnew = znew.real ynew = znew.imag contourf(xnew,ynew,h,linspace(0,5,10))

Re: [Matplotlib-users] plotting a contour from dicrete data

2007-07-11 Thread Jeff Whitaker
Mark Bakker wrote: Viraj and Jeff - Maybe one extension of Jeff's answer. The process works as long as x, y, and z are 2D arrays of the same size and shape. Hence, x and y don't have to form a rectangular grid. I have used this feature regularly for conformal mapping. And it makes a lot

Re: [Matplotlib-users] plotting a contour from dicrete data points

2007-07-07 Thread Jeff Whitaker
Viraj Vajratkar wrote: On 7/3/07, *Jeff Whitaker* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Michael Newman wrote: My understanding is the contour method only handles plots of functions, e.g. f(x,y) = z, and not discrete points. I tried looking into this weeks

Re: [Matplotlib-users] plotting a contour from dicrete data points

2007-07-03 Thread Michael Newman
My understanding is the contour method only handles plots of functions, e.g. f(x,y) = z, and not discrete points. I tried looking into this weeks ago, and couldn't find a way to handle discrete points. I'd love to be able to do Kriging or Inverse Distance Weighting contour lines on XY points I

Re: [Matplotlib-users] plotting a contour from dicrete data points

2007-07-03 Thread Jeff Whitaker
Michael Newman wrote: My understanding is the contour method only handles plots of functions, e.g. f(x,y) = z, and not discrete points. I tried looking into this weeks ago, and couldn't find a way to handle discrete points. I'd love to be able to do Kriging or Inverse Distance Weighting

[Matplotlib-users] plotting a contour from dicrete data points

2007-06-30 Thread Viraj Vajratkar
hello ppl, hey i hav 3 .dat files... one has 1 column of x coords, another has 1 column of the same number of y coords and the last .dat file has the same number of corresponding values of a property[temperature] at those points in 1 column i was wondering how i cud make a contour of this