Re: [matplotlib-devel] question about imshow's support for masked arrays

2009-03-25 Thread Darren Dale
On Wed, Mar 25, 2009 at 3:02 PM, Eric Firing wrote: > Darren Dale wrote: > >> I am experimenting with numpy masked arrays, and have a question about how >> imshow handles them: >> >> from numpy import ma >> from pylab import colorbar, imshow, show >> >> a=ma.array([[1,2,3],[4,5,6]],mask=[[0,0,1],

Re: [matplotlib-devel] question about imshow's support for masked arrays

2009-03-25 Thread Eric Firing
Darren Dale wrote: > I am experimenting with numpy masked arrays, and have a question about > how imshow handles them: > > from numpy import ma > from pylab import colorbar, imshow, show > > a=ma.array([[1,2,3],[4,5,6]],mask=[[0,0,1],[0,0,0]], fill_value=0) > imshow(a, interpolation='nearest') >

[matplotlib-devel] question about imshow's support for masked arrays

2009-03-25 Thread Darren Dale
I am experimenting with numpy masked arrays, and have a question about how imshow handles them: from numpy import ma from pylab import colorbar, imshow, show a=ma.array([[1,2,3],[4,5,6]],mask=[[0,0,1],[0,0,0]], fill_value=0) imshow(a, interpolation='nearest') colorbar() show() With svn matplotli