Re: [Matplotlib-users] create ListedColormap with different alpha values

2008-11-25 Thread Paul Ivanov
Hey John and the rest of the MPL gang: I've made the changes you suggested, but the problem is looking to be deeper than it seemed. I'm also moving this conversation to matplotlib-devel, since that's probably the more appropriate place for it. This updated patch allows for the creation of colorma

Re: [Matplotlib-users] create ListedColormap with different alpha values

2008-11-23 Thread John Hunter
On Sun, Nov 23, 2008 at 2:01 AM, Paul Ivanov <[EMAIL PROTECTED]> wrote: > I took a stab at it, how does this look? > > I also took the liberty of adding alpha to LinearSegmentedColormap and > updated its docstring changing two somewhat ambiguous uses of the word > 'entry' with 'key' and 'value'. H

Re: [Matplotlib-users] create ListedColormap with different alpha values

2008-11-23 Thread Paul Ivanov
I took a stab at it, how does this look? I also took the liberty of adding alpha to LinearSegmentedColormap and updated its docstring changing two somewhat ambiguous uses of the word 'entry' with 'key' and 'value'. tested with In [1]: import matplotlib; import numpy as np In [2]: my_rgba_array=

Re: [Matplotlib-users] create ListedColormap with different alpha values

2008-11-21 Thread John Hunter
On Fri, Nov 21, 2008 at 2:45 AM, Simon Kammerer <[EMAIL PROTECTED]> wrote: > After looking at the source of matplotlib.colors, it seems to me that > different alpha values are something Colormap is not designed for. Yes, it looks like the colormap only holds the RGB channels, but it also looks fa

[Matplotlib-users] create ListedColormap with different alpha values

2008-11-21 Thread Simon Kammerer
Hi all, I'd like to create a ListedColormap with different alpha values, like ... [ 1. , 1. , 1. , 0.65], [ 1. , 1. , 1. , 0.66], [ 1. , 1. , 1. , 0.67], [ 1. , 1. , 1. , 0.68], [ 1. , 1. , 1. , 0.69], [ 1. , 1. , 1