Jeff, Perfect. I'll give that a try...
Thanks again, P.R. -----Original Message----- From: Jeff Whitaker [mailto:jsw...@fastmail.fm] Sent: 2009-08-13 7:15 AM To: Eric Firing Cc: P.R.; matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] contourf interpolation/smoothness Eric Firing wrote: > P.R. wrote: > >> This has probably been asked before, so I apologize... >> >> Is it possible to improve the smoothness/interpolation used in contourf? >> I know that the interpolation can be set for imshow(pcolor?), but I couldn't >> see how to set it for contourf. >> >> Right now, contourf is producing some relatively jagged output for my >> dataset, and I'd like to try to smoothen it out, without resorting to using >> pcolor/imshow... >> > > There are two approaches: > > 1) manipulate the contours (the patch boundaries) > 2) smooth and interpolate the data to a finer grid before contouring. > > There are many problems with the first approach, and we have never tried > to implement it. > > That leaves the second method, which is really not a plotting task but a > data processing task. You might want to see if there is a suitable tool > in scipy. > > Eric > > > Pablo: You could use the interp function in Basemap to bilinearly interpolate to a finer grid. http://matplotlib.sourceforge.net/basemap/doc/html/api/basemap_api.html#mpl_ toolkits.basemap.interp -Jeff ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users