Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fffd84a

Browse files
committed
In findobj_demo, exclude patches from objects to be colored blue.
svn path=/trunk/matplotlib/; revision=7297
1 parent 42ff471 commit fffd84a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pylab_examples/findobj_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
# match on arbitrary function
2525
def myfunc(x):
26-
return hasattr(x, 'set_color')
26+
return hasattr(x, 'set_color') and not hasattr(x, 'set_facecolor')
2727

2828
for o in fig.findobj(myfunc):
2929
o.set_color('blue')

0 commit comments

Comments
 (0)