matplotlib 0.98.0 colors problem LineCollection

Hi,

setting colors with transparency no longer works for me in
0.98.0, but worked before in 0.91.3:

c = matplotlib.collections.LineCollection(lines, colors = lineColors)

This shows the lines only with the base colors without transparency.

However, if I modify the code to the following, the colors shows
properly with transparency:

c = matplotlib.collections.LineCollection(lines)
c.set_color(lineColors)

Mátyás János

Thanks. mpl was applying the default alpha of 1.0 to the set of colors rather than ignoring it when an alpha is provided for each color. This is now fixed in SVN r5554

Cheers,
Mike

M�ty�s J�nos wrote:

···

Hi,

setting colors with transparency no longer works for me in
0.98.0, but worked before in 0.91.3:

c = matplotlib.collections.LineCollection(lines, colors = lineColors)

This shows the lines only with the base colors without transparency.

However, if I modify the code to the following, the colors shows
properly with transparency:

c = matplotlib.collections.LineCollection(lines)
c.set_color(lineColors)

M�ty�s J�nos

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Hi,

thank you for the fix. It works great now.

Mátyás János

···

On Mon, 16 Jun 2008 08:15:39 -0400 Michael Droettboom <mdroe@...31...> wrote:

Thanks. mpl was applying the default alpha of 1.0 to the set of
colors rather than ignoring it when an alpha is provided for each
color. This is now fixed in SVN r5554

Cheers,
Mike

Mátyás János wrote:
> Hi,
>
> setting colors with transparency no longer works for me in
> 0.98.0, but worked before in 0.91.3:
>
> c = matplotlib.collections.LineCollection(lines, colors =
> lineColors)
>
> This shows the lines only with the base colors without transparency.
>
> However, if I modify the code to the following, the colors shows
> properly with transparency:
>
> c = matplotlib.collections.LineCollection(lines)
> c.set_color(lineColors)
>
>
> Mátyás János