|
From: <ry...@us...> - 2010-10-23 04:43:57
|
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.
|