contour and alpha

Hi,

I think that "collection._alpha = self.alpha" (or something better)
are missing in ContoutSet.__init__, because _alpha from collections
(Line or Poly) overrides the alpha value the color of
"collection.set_color(color)" found in method "changed" of ContourSet.
Therefore, alpha doesn't work for contours (filled or not).

Nota: If "collection.set_alpha" is used, it fails with line contouring
because self._edgecolors is an empty list.

I hope it can help.

···

--
Stephane Raynaud

Stephane Raynaud wrote:

Hi,

I think that "collection._alpha = self.alpha" (or something better)
are missing in ContoutSet.__init__, because _alpha from collections
(Line or Poly) overrides the alpha value the color of
"collection.set_color(color)" found in method "changed" of ContourSet.
Therefore, alpha doesn't work for contours (filled or not).

Nota: If "collection.set_alpha" is used, it fails with line contouring
because self._edgecolors is an empty list.

I hope it can help.

Stephane,

It did help, thank you. I have fixed this in svn, rev 5051.

Eric