2010/3/29 Alan G Isaac <alan.is...@gmail.com>: > Can you explain this: > norm = colors.Normalize(vmin = -1, vmax = 1)
The normaliser takes some arbitrary value and returns a value in [0, 1]. Hence the name. The value \in [0, 1] is handed over to the cmap's __call__(), resulting in the color value. And yes, I guess you can use vmin and vmax directly, it's just a matter of taste. As you can pass in also *boundaries* to Colorbar(), this may be an alternative. It will display all red above the max value, though it's harder to tick. When you want the highest value to be really represented by red, not near-to-red. Friedrich ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users