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

Skip to content

Commit 455d992

Browse files
committed
Trivial bugfix to eliminate IndexError
svn path=/trunk/matplotlib/; revision=368
1 parent c8c3a0a commit 455d992

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

examples/dynamic_demo_wx.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
2121
Modification History:
2222
$Log$
23+
Revision 1.5 2004/06/26 06:37:20 astraw
24+
Trivial bugfix to eliminate IndexError
25+
2326
Revision 1.4 2004/05/03 12:12:26 jdh2358
2427
added bang header to examples
2528
@@ -105,7 +108,7 @@ def GetToolBar(self):
105108

106109
def onTimer(self, evt):
107110
self.count += 1
108-
if self.count > 99: self.count = 0
111+
if self.count >= 60: self.count = 0
109112
self.lines[0].set_data(self.ind, self.X[:,self.count])
110113
self.canvas.draw()
111114
self.canvas.gui_repaint()

0 commit comments

Comments
 (0)