From: <ef...@us...> - 2011-02-06 05:06:53
|
Revision: 8951 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8951&view=rev Author: efiring Date: 2011-02-06 05:06:46 +0000 (Sun, 06 Feb 2011) Log Message: ----------- bugfix: Collection.set_edgecolor was failing in mplot3d/contour_demo2 Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/collections.py Modified: trunk/matplotlib/lib/matplotlib/collections.py =================================================================== --- trunk/matplotlib/lib/matplotlib/collections.py 2011-02-06 02:41:22 UTC (rev 8950) +++ trunk/matplotlib/lib/matplotlib/collections.py 2011-02-06 05:06:46 UTC (rev 8951) @@ -428,13 +428,17 @@ self._is_stroked = False except AttributeError: pass - if c == 'face': - self._edgecolors = 'face' - self._edgecolors_original = 'face' - else: - if c is None: c = mpl.rcParams['patch.edgecolor'] - self._edgecolors_original = c - self._edgecolors = mcolors.colorConverter.to_rgba_array(c, self._alpha) + try: + if c.lower() == 'face': + self._edgecolors = 'face' + self._edgecolors_original = 'face' + return + except AttributeError: + pass + if c is None: + c = mpl.rcParams['patch.edgecolor'] + self._edgecolors_original = c + self._edgecolors = mcolors.colorConverter.to_rgba_array(c, self._alpha) def set_edgecolors(self, c): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |