On 2013/12/01 5:11 AM, lin.h...@europe.com wrote: > Z = X**2 + Y**2 > Z[(X**2+Y**2 < r**2) | (X**2+Y**2 > R**2)] = np.ma.masked
The problem is that Z is not a masked array. Change the first line above to Z = np.ma.array(X**2 + Y**2). Also, use pcolormesh instead of pcolor. Pcolormesh is much faster. Eric ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users