Christian K. wrote: > Hi everyone, > > is it possible to map a certain range within the value-range of a image plot > to > a constant value? Currently I am overlaying a filled contour plot with just > two > contour levels on top of an image plot. This works, but I would like to > display > the plateau in the colorbar as well, so that the color changes continously > over > the whole value range but in the specified range where it should remain > white. > I guess I would need a special colormapper to achieve that.
Yes. See http://matplotlib.sourceforge.net/examples/pylab_examples/custom_cmap.html for an explanation of how to make one. Actually, you can achieve what you want with either a special cmap, or with a special norm. I don't think we have any examples of the latter. Eric ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users