[Matplotlib-users] 2D array plot picking explicit values to colour and legend

2012-04-09 Thread Mathew Topper
Dear matplotlib-users, I have a spatial data set that has coded values for each cell, which are limited to just a few numbers, ie -, 0, 100, and . I would like to display this data with a plot similar to pcolor, but I don't want a colorbar, I want a legend showing the colors for each

Re: [Matplotlib-users] 2D array plot picking explicit values to colour and legend

2012-04-09 Thread Eric Firing
On 04/09/2012 02:22 AM, Mathew Topper wrote: Dear matplotlib-users, I have a spatial data set that has coded values for each cell, which are limited to just a few numbers, ie -, 0, 100, and . I would like to display this data with a plot similar to pcolor, but I don't want a

Re: [Matplotlib-users] 2D array plot picking explicit values to colour and legend

2012-04-09 Thread Mathew Topper
Hi Eric, thanks for the tip about the legend. Regarding the data, assuming i am using pcolor, am I right in thinking that using Boundarynorm would be the best way to control the colors for each code? Thanks Mat On 04/09/2012 06:26 PM, Eric Firing wrote: On 04/09/2012 02:22 AM, Mathew

Re: [Matplotlib-users] 2D array plot picking explicit values to colour and legend

2012-04-09 Thread Eric Firing
On 04/09/2012 08:17 AM, Mathew Topper wrote: Hi Eric, thanks for the tip about the legend. Regarding the data, assuming i am using pcolor, am I right in thinking that using Boundarynorm would be the best way to control the colors for each code? Mat, I think BoundaryNorm is overkill and/or