Rob Hetland wrote: > On Jul 20, 2007, at 9:07 AM, Paul Kienzle wrote: > >> On Fri, Jul 20, 2007 at 08:53:30AM -0400, Rob Hetland wrote: >>> Second, much of what I do involves plotting model data (on a >>> curvilinear grid). I generally like to use pcolor for these plots. >>> I *always* want shading='flat' Some of my grids are large, and I >>> only see lines if I don't. Even with smaller grids, those black >>> lines get in the way. I don't want to suggest an RC setting for >>> everything, but this one single setting would save me thousands of >>> characters typed per week. Can we add an RC shading option? >> If your data is on a quadrilateral mesh, try using the pcolormesh >> function. It is orders of magnitude faster than pcolor and we >> solved the black lines problem by using transparency on the mesh >> grid (though of course you can use 'flat' if you want). We only >> implemented this for the Agg backend, otherwise it falls back to >> the pcolor style rendering of a collection of polygons. > > Yes, pcolormesh works great. Still, when I use the default values > [pcolormesh(x, y, z)] I get a Morrey (sp?) pattern instead of seeing > the grid -- i.e., better than pcolor(..., shading='faceted'), but > still not a great plot. Is it possible to set RC defaults to get the > equivalent of shading='flat' in pcolormesh? As far as I know, it is > not possible in pcolor.
Rob, That horrible default of 'faceted' is an evil side-effect of patterning pylab after matlab; it is ugly and annoying in matlab, and equally so in pylab. We can either break the matlab compatibility or put in an rc setting--but I agree, one or the other is needed, and should apply in the same way to pcolor as to pcolormesh. The path of least resistance is yet another rc setting, but it might be worth a question to matplotlib-users to see if *anyone* really likes keeping the Matlab-style default. Probably there are such people. Eric > > -r > > ---- > Rob Hetland, Associate Professor > Dept. of Oceanography, Texas A&M University > http://pong.tamu.edu/~rob > phone: 979-458-0096, fax: 979-845-6331 > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel