From: Marcel O. <m.o...@ja...> - 2012-12-12 19:57:38
|
Paul Hobson writes: > On Wed, Dec 12, 2012 at 5:59 AM, Michael Droettboom <md...@st...> wrote: > > http://matplotlib.org/examples/api/clippath_demo.html > > It's perfectly reasonable code, but seems strange that it's > clipped off to the corner which I think makes it less useful as > an example. > > If I understand correctly, you're proposing that that such an > example would be deleted after a more practical example was > available to replace it? > > While I'm 100% in favor of "cleaning out the closet", I used this exact > example two days ago to clip a depressed groundwater surface to a landfill > boundary :) There is one small issue with the example: If one is using imshow on random pixel data, there is not reason to use bilinear interpolation (which is what imshow defaults to). "nearest" is the only reasonable choice. I know this sounds pedantic, but it irks me as a numerical analyst... --Marcel |