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],
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')
>
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