Revision: 7171
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7171&view=rev
Author:   efiring
Date:     2009-06-01 22:20:26 +0000 (Mon, 01 Jun 2009)

Log Message:
-----------
Add set_color method to Patch, to match Collections

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/patches.py

Modified: trunk/matplotlib/lib/matplotlib/patches.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/patches.py  2009-06-01 21:41:46 UTC (rev 
7170)
+++ trunk/matplotlib/lib/matplotlib/patches.py  2009-06-01 22:20:26 UTC (rev 
7171)
@@ -199,6 +199,21 @@
         """alias for set_facecolor"""
         return self.set_facecolor(color)
 
+    def set_color(self, c):
+        """
+        Set both the edgecolor and the facecolor.
+
+        ACCEPTS: matplotlib color arg or sequence of rgba tuples
+
+        .. seealso::
+
+            :meth:`set_facecolor`, :meth:`set_edgecolor`
+               For setting the edge or face color individually.
+        """
+        self.set_facecolor(c)
+        self.set_edgecolor(c)
+
+
     def set_linewidth(self, w):
         """
         Set the patch linewidth in points


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to