Revision: 8763
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8763&view=rev
Author: ryanmay
Date: 2010-10-23 04:43:51 +0000 (Sat, 23 Oct 2010)
Log Message:
-----------
Fix radio_buttons example for event connections only taking a weak reference.
Modified Paths:
--------------
trunk/matplotlib/examples/widgets/radio_buttons.py
Modified: trunk/matplotlib/examples/widgets/radio_buttons.py
===================================================================
--- trunk/matplotlib/examples/widgets/radio_buttons.py 2010-10-23 03:34:52 UTC
(rev 8762)
+++ trunk/matplotlib/examples/widgets/radio_buttons.py 2010-10-23 04:43:51 UTC
(rev 8763)
@@ -20,17 +20,17 @@
radio.on_clicked(hzfunc)
rax = axes([0.05, 0.4, 0.15, 0.15], axisbg=axcolor)
-radio = RadioButtons(rax, ('red', 'blue', 'green'))
+radio2 = RadioButtons(rax, ('red', 'blue', 'green'))
def colorfunc(label):
l.set_color(label)
draw()
-radio.on_clicked(colorfunc)
+radio2.on_clicked(colorfunc)
rax = axes([0.05, 0.1, 0.15, 0.15], axisbg=axcolor)
-radio = RadioButtons(rax, ('-', '--', '-.', 'steps', ':'))
+radio3 = RadioButtons(rax, ('-', '--', '-.', 'steps', ':'))
def stylefunc(label):
l.set_linestyle(label)
draw()
-radio.on_clicked(stylefunc)
+radio3.on_clicked(stylefunc)
show()
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins