Revision: 7674
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7674&view=rev
Author:   astraw
Date:     2009-09-07 16:57:36 +0000 (Mon, 07 Sep 2009)

Log Message:
-----------
Patch artist: emit warning when kwargs conflict (addresses SF#2848629)

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

Modified: trunk/matplotlib/lib/matplotlib/patches.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/patches.py  2009-09-07 16:32:28 UTC (rev 
7673)
+++ trunk/matplotlib/lib/matplotlib/patches.py  2009-09-07 16:57:36 UTC (rev 
7674)
@@ -73,6 +73,13 @@
         if linestyle is None: linestyle = "solid"
         if antialiased is None: antialiased = mpl.rcParams['patch.antialiased']
 
+        if 'color' in kwargs:
+            if (edgecolor is not None or
+                facecolor is not None):
+                import warnings
+                warnings.warn("Setting the 'color' property will override"
+                              "the edgecolor or facecolor properties. ")
+
         self.set_edgecolor(edgecolor)
         self.set_facecolor(facecolor)
         self.set_linewidth(linewidth)


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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to