|
From: <jd...@us...> - 2009-08-04 18:22:07
|
Revision: 7351
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7351&view=rev
Author: jdh2358
Date: 2009-08-04 18:21:59 +0000 (Tue, 04 Aug 2009)
Log Message:
-----------
minor tweak to legend picking example
Modified Paths:
--------------
trunk/matplotlib/examples/event_handling/legend_picking.py
Modified: trunk/matplotlib/examples/event_handling/legend_picking.py
===================================================================
--- trunk/matplotlib/examples/event_handling/legend_picking.py 2009-08-04 18:09:38 UTC (rev 7350)
+++ trunk/matplotlib/examples/event_handling/legend_picking.py 2009-08-04 18:21:59 UTC (rev 7351)
@@ -31,11 +31,11 @@
# legend proxy line, and toggle the visibilit
legline = event.artist
origline = lined[legline]
- vis = origline.get_visible()
- origline.set_visible(not vis)
+ vis = not origline.get_visible()
+ origline.set_visible(vis)
# Change the alpha on the line in the legend so we can see what lines
# have been toggled
- if not vis:
+ if vis:
legline.set_alpha(1.0)
else:
legline.set_alpha(0.2)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|