Empty squares at end of data after interpolation with griddata?

Having one last problem with matplotlib. I have some data that I’m interpolating with griddata, and then plotting with contourf. For reasons that escape me, the upper right and the lower left squares are not being plotted. I’m printing out a 10x10 version of this to exaggerate the effect:

http://files.getdropbox.com/u/533499/griddata-example-text.png

In reality, I interpolate/plot this 200x200 squares, and none of it is all that noticeable. However, I’m worried that I’m doing something wrong here, and that the mistake is going to come back and bite me later on. Has anyone seen anything like this?

Thanks for any help you can offer with this, and thank for all of the help the list members have already given me.

Rick

···


Rick Muller
rpmuller@…287…

Hello Rick,

···

On Sun, Jul 5, 2009 at 03:52, Rick Muller<rpmuller@...287...> wrote:

Having one last problem with matplotlib. I have some data that I'm
interpolating with griddata, and then plotting with contourf. For reasons
that escape me, the upper right and the lower left squares are not being
plotted. I'm printing out a 10x10 version of this to exaggerate the effect:

http://files.getdropbox.com/u/533499/griddata-example-text.png

this link returns a 404. Please attach the image to this email, along
with a minimal program to replicate the problem (if possible).

Regards,
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

Rick Muller wrote:

Having one last problem with matplotlib. I have some data that I'm interpolating with griddata, and then plotting with contourf. For reasons that escape me, the upper right and the lower left squares are not being plotted. I'm printing out a 10x10 version of this to exaggerate the effect:

http://files.getdropbox.com/u/533499/griddata-example-text.png

Rick: That URL doesn't work.

griddata won't do extrapolation, that is it won't interpolate outside the convex hull of the data. That's probably why you see those empty squares at the edges.

-Jeff

···

In reality, I interpolate/plot this 200x200 squares, and none of it is all that noticeable. However, I'm worried that I'm doing something wrong here, and that the mistake is going to come back and bite me later on. Has anyone seen anything like this?

Thanks for any help you can offer with this, and thank for all of the help the list members have already given me.

Rick
--
Rick Muller
rpmuller@...287... <mailto:rpmuller@…287…>
------------------------------------------------------------------------

------------------------------------------------------------------------------
  ------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options