Skip to content

Commit

Permalink
fixed blocking plots
Browse files Browse the repository at this point in the history
  • Loading branch information
thearn committed Oct 2, 2014
1 parent 959995d commit 72c600f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion highlife.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def high_life(state, k=None):
# plot each frame
plt.figure()
img_plot = plt.imshow(A, interpolation="nearest", cmap = plt.cm.gray)
plt.show()
plt.show(block=False)
while True:
A = high_life(A)
img_plot.set_data(A)
Expand Down
2 changes: 1 addition & 1 deletion replicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def replicator(state, k=None):
# plot each frame
plt.figure()
img_plot = plt.imshow(A, interpolation="nearest", cmap = plt.cm.gray)
plt.show()
plt.show(block=False)
while True:
A = replicator(A)
img_plot.set_data(A)
Expand Down
2 changes: 1 addition & 1 deletion seeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def seeds(state, k):
# plot each frame
plt.figure()
img_plot = plt.imshow(A, interpolation="nearest", cmap = plt.cm.gray)
plt.show()
plt.show(block=False)
while True:
A = seeds(A, k)
img_plot.set_data(A)
Expand Down
2 changes: 1 addition & 1 deletion two_by_two.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def two_by_two(state, k=None):
# plot each frame
plt.figure()
img_plot = plt.imshow(A, interpolation="nearest", cmap = plt.cm.gray)
plt.show()
plt.show(block=False)
while True:
A = two_by_two(A)
img_plot.set_data(A)
Expand Down

0 comments on commit 72c600f

Please sign in to comment.