SF.net SVN: matplotlib: [5003] trunk/matplotlib/lib/matplotlib/collections. py
Revision: 5003
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5003&view=rev
Author: mdboom
Date: 2008-03-18 11:35:10 -0700 (Tue, 18 Mar 2008)
Log Message:
---
Fixing set_alpha bug when there is no facecolors (thanks Michael Fitzgerald)
Modified Paths:
--
trunk/matplotlib/lib/matplotlib/collections.py
Modified: trunk/matplotlib/lib/matplotlib/collections.py
===
--- trunk/matplotlib/lib/matplotlib/collections.py 2008-03-14 12:22:28 UTC
(rev 5002)
+++ trunk/matplotlib/lib/matplotlib/collections.py 2008-03-18 18:35:10 UTC
(rev 5003)
@@ -153,7 +153,7 @@
if self.have_units():
paths = []
-for path in self._paths:
+for path in self.get_paths():
vertices = path.vertices
xs, ys = vertices[:, 0], vertices[:, 1]
xs = self.convert_xunits(xs)
@@ -305,7 +305,8 @@
except TypeError: raise TypeError('alpha must be a float')
else:
artist.Artist.set_alpha(self, alpha)
-self._facecolors[:, 3] = alpha
+if len(self._facecolors):
+self._facecolors[:, 3] = alpha
self._edgecolors[:, 3] = alpha
def get_linewidths(self):
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins
SF.net SVN: matplotlib: [5004] trunk/matplotlib/lib/matplotlib/axes.py
Revision: 5004 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5004&view=rev Author: mdboom Date: 2008-03-18 11:46:07 -0700 (Tue, 18 Mar 2008) Log Message: --- Fixing merge error. (Thanks Manuel Metz) Modified Paths: -- trunk/matplotlib/lib/matplotlib/axes.py Modified: trunk/matplotlib/lib/matplotlib/axes.py === --- trunk/matplotlib/lib/matplotlib/axes.py 2008-03-18 18:35:10 UTC (rev 5003) +++ trunk/matplotlib/lib/matplotlib/axes.py 2008-03-18 18:46:07 UTC (rev 5004) @@ -4188,7 +4188,6 @@ Finally, marker can be (verts, 0), verts is a sequence of (x,y) vertices for a custom scatter symbol. -<<< .working numsides is the number of sides @@ -4202,9 +4201,6 @@ Finally, marker can be (verts, 0), verts is a sequence of (x,y) vertices for a custom scatter symbol. -=== - ->>> .merge-right.r4987 s is a size argument in points squared. Any or all of x, y, s, and c may be masked arrays, in which This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins
