From 72c600f3eb3ed91942009ce19542122d7c1d8d94 Mon Sep 17 00:00:00 2001 From: Tristan Hearn Date: Thu, 2 Oct 2014 08:38:38 -0400 Subject: [PATCH] fixed blocking plots --- highlife.py | 2 +- replicator.py | 2 +- seeds.py | 2 +- two_by_two.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/highlife.py b/highlife.py index cd02016..250e422 100644 --- a/highlife.py +++ b/highlife.py @@ -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) diff --git a/replicator.py b/replicator.py index 1dba979..566f4a9 100644 --- a/replicator.py +++ b/replicator.py @@ -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) diff --git a/seeds.py b/seeds.py index c30b152..4771174 100644 --- a/seeds.py +++ b/seeds.py @@ -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) diff --git a/two_by_two.py b/two_by_two.py index b855726..4971baf 100644 --- a/two_by_two.py +++ b/two_by_two.py @@ -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)