|
From: Paul I. <piv...@gm...> - 2012-12-05 23:29:27
|
On Wed, Dec 5, 2012 at 2:36 PM, Oliver King <oli...@gm...> wrote: > What appears to be happening is that the alpha values in the cmap I use when I create the ListedColormap object are being ignored by the add_collection function. I see that this bug (or something quite like it) was reported in late 2008: > http://matplotlib.1069221.n5.nabble.com/create-ListedColormap-with-different-alpha-values-tt18693.html#a18697 > > Did the patch from late 2008 not make it into the code, or has this bug resurfaced? Does anyone know of a workaround for this issue? It's all a blur now, but I don't think that patch made it in because colormaps were inherently RGB not RGBA. Something similar to that patch was merged in a year ago: https://github.com/matplotlib/matplotlib/pull/660 and attached is the result of running your code on my machine. What is your matplotlib.__version__ ? I think that code only made it's way into v1.2.0 (the latest stable), and was did not make it into v1.1.1 (or anything before it) -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 |