Revision: 7297
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7297&view=rev
Author:   efiring
Date:     2009-07-27 19:23:55 +0000 (Mon, 27 Jul 2009)

Log Message:
-----------
In findobj_demo, exclude patches from objects to be colored blue.

Modified Paths:
--------------
    trunk/matplotlib/examples/pylab_examples/findobj_demo.py

Modified: trunk/matplotlib/examples/pylab_examples/findobj_demo.py
===================================================================
--- trunk/matplotlib/examples/pylab_examples/findobj_demo.py    2009-07-27 
12:30:35 UTC (rev 7296)
+++ trunk/matplotlib/examples/pylab_examples/findobj_demo.py    2009-07-27 
19:23:55 UTC (rev 7297)
@@ -23,7 +23,7 @@
 
 # match on arbitrary function
 def myfunc(x):
-    return hasattr(x, 'set_color')
+    return hasattr(x, 'set_color') and not hasattr(x, 'set_facecolor')
 
 for o in fig.findobj(myfunc):
     o.set_color('blue')


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

------------------------------------------------------------------------------
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to