Re: [Matplotlib-users] mark invalid pixels in image

2009-12-10 Thread Eric Firing
markus.proel...@ifm.com wrote: > > Hello, > > let's say I have given an image of distance values, which I display with > the jet colormap. Now if there are invalid pixels within the image they > have the value -1 or -2. Is there a way to display just the "valid" > image with the jet colorbar a

[Matplotlib-users] mark invalid pixels in image

2009-12-10 Thread markus . proeller
Hello, let's say I have given an image of distance values, which I display with the jet colormap. Now if there are invalid pixels within the image they have the value -1 or -2. Is there a way to display just the "valid" image with the jet colorbar and the -1 pixels as white pixels and the -2 pi