Skip to content

Commit 0d9a900

Browse files
committed
Fixed DataDemo.py test script (was crashing)
This closes #41
1 parent aabb8a0 commit 0d9a900

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qwt/tests/DataDemo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ def timerEvent(self, e):
7777

7878
# y moves from left to right:
7979
# shift y array right and assign new value y[0]
80-
self.y = np.concatenate((self.y[:1], self.y[:-1]), 1)
80+
self.y = np.concatenate((self.y[:1], self.y[:-1]))
8181
self.y[0] = np.sin(self.phase) * (-1.0 + 2.0*random.random())
8282

8383
# z moves from right to left:
8484
# Shift z array left and assign new value to z[n-1].
85-
self.z = np.concatenate((self.z[1:], self.z[:1]), 1)
85+
self.z = np.concatenate((self.z[1:], self.z[:1]))
8686
self.z[-1] = 0.8 - (2.0 * self.phase/np.pi) + 0.4*random.random()
8787

8888
self.curveR.setData(self.x, self.y)

0 commit comments

Comments
 (0)