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

Skip to content

Commit 1e11bd6

Browse files
committed
fixed broken callback handler
svn path=/trunk/matplotlib/; revision=3126
1 parent 2dea50f commit 1e11bd6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/cbook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def connect(self, s, func):
3737
func will be called with args and kwargs
3838
"""
3939
self._check_signal(s)
40-
self.callbacks[s][self._cid] = func
4140
self._cid +=1
41+
self.callbacks[s][self._cid] = func
4242
return self._cid
4343

4444
def disconnect(self, cid):

lib/matplotlib/mpl-data/matplotlibrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#### CONFIGURATION BEGINS HERE
2727
# the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg
2828
# Agg Cairo GD GDK Paint PS PDF SVG Template
29-
backend : WXAgg
29+
backend : TkAgg
3030
numerix : numpy # numpy, Numeric or numarray
3131
units : True
3232
#interactive : False # see http://matplotlib.sourceforge.net/interactive.html

0 commit comments

Comments
 (0)