Re: [Matplotlib-users] colormaps - combine linear segmented with discrete sections?

2010-12-08 Thread Timothy W. Hilton
Hi Friedrich, Many thanks for your detailed response. I've had to turn my attention to other things in the past few weeks, but I am back to this task now. I've implemented the Norm that you suggested by subclassing Normalize; that was a great suggestion. Now I have a two dimensional array

Re: [Matplotlib-users] colormaps - combine linear segmented with discrete sections?

2010-11-06 Thread Friedrich Romstedt
2010/11/1 Timothy W. Hilton hil...@meteo.psu.edu: [...] I want to have blue water, some other (bright) color for missing data, and a nice-looking color transition (matplotlib.cm.Blues or something similar) for the valid data over land (values from 0 to 50).  The Cookbook example at

[Matplotlib-users] colormaps - combine linear segmented with discrete sections?

2010-11-01 Thread Timothy W. Hilton
Hello, I have a 2D numpy masked array of geo-located data -- with some data missing -- that I wish to plot on a map. Basemap provides a nice tool to do this, but I am stumped trying to get the colorscheme I want. My data are only physically meaningful on land, so I am using Basemap.maskoceans()