Removed unnecessary 'curve1' from 'global'
This commit is contained in:
parent
fe90f46bdd
commit
b131785b86
@ -21,7 +21,7 @@ curve1 = p1.plot(data1)
|
||||
curve2 = p2.plot(data1)
|
||||
ptr1 = 0
|
||||
def update1():
|
||||
global data1, curve1, ptr1
|
||||
global data1, ptr1
|
||||
data1[:-1] = data1[1:] # shift data in the array one sample left
|
||||
# (see also: np.roll)
|
||||
data1[-1] = np.random.normal()
|
||||
|
Loading…
Reference in New Issue
Block a user