Re: [Matplotlib-users] contourf doesn't like a rectangular grid

2010-03-11 Thread Friedrich Romstedt
I deem it useful if you would add a print map_XX.shape, map_YY.shape, y.shape . I'm suspicious about their shape. _check_xyz() accepts 2D X,Y-arrays only if their shape is equal to that of y (y in your case). Friedrich --

Re: [Matplotlib-users] contourf doesn't like a rectangular grid

2010-03-08 Thread Shrividya Ravi
Hi there, I think I made a mistake with putting in a tuple in my first email, but here is the error output from the contourf that I call within a script. I use this script before with a square grid and there is no problem. Anyway, after your email, I played with the script again and I think I have

Re: [Matplotlib-users] contourf doesn't like a rectangular grid

2010-03-07 Thread Eric Firing
Shrividya Ravi wrote: > Hi all, > I have been using contourf quite happily with a square number of grid > points. e.g. a 20 by 20 grid. I recently decided to do a contourf plot > of a 20 by 15 grid (300 points) and I get errors. Unfortunately, I am > plotting experimental data so I cannot really

[Matplotlib-users] contourf doesn't like a rectangular grid

2010-03-07 Thread Shrividya Ravi
Hi all, I have been using contourf quite happily with a square number of grid points. e.g. a 20 by 20 grid. I recently decided to do a contourf plot of a 20 by 15 grid (300 points) and I get errors. Unfortunately, I am plotting experimental data so I cannot really tailor the grid size. Here is the