From: Steve C. <ste...@ya...> - 2004-12-13 09:38:11
|
On Sun, 2004-12-12 at 22:14 -0800, seb...@sp... wrote: > The z-axis values that I want to denote with color on this > plot range from something like 57000 to 66000. > > I think I somehow need to tell Matplotlib what these minimum > and maximum values are so that my color spectrum can range over > desired colors for my specific plotting range. > > How do this? (How make 57000 be one color extreme and make > 66000 be my other color extreme?) > > Chris By normalising 57000 to 0 and 66000 to 1 and using a custom colormap function to generate rgb values to feed into matplotlib. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52273 I was looking at this cookbook recipe yesterday, it looks like it does what you require. Steve |