|
From: <ef...@us...> - 2009-06-01 22:20:28
|
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.
|