Skip to content
Snippets Groups Projects
Commit 9a43ab92 authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

wip

parent 24c225bc
Branches
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ while 1:
z = sin(0.1*loop*r)/(0.1*loop*r)
im.set_data(z)
fig.canvas.draw()
fig.canvas.flush_events()
loop += step
if ((loop == 1) | (loop == nloop)):
step = -step
......@@ -14,7 +14,6 @@ y = sin(x)/x
plt.ion()
fig,ax = plt.subplots()
line, = ax.plot(x,y)
plt.show()
nloop = 25
loop = 1
step = 1
......@@ -23,6 +22,7 @@ while 1:
y = sin(0.1*loop*x)/(0.1*loop*x)
line.set_ydata(y)
fig.canvas.draw()
fig.canvas.flush_events()
loop += step
if ((loop == 1) | (loop == nloop)):
step = -step
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment