From a1d162a4f978cd8997a9b5e097c7068f280c11a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Fri, 4 Dec 2015 18:00:38 -0500 Subject: [PATCH] Use more common syntax to assign axis variables --- doc/examples/plot_entropy.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/examples/plot_entropy.py b/doc/examples/plot_entropy.py index 363c88ed..9bef036e 100644 --- a/doc/examples/plot_entropy.py +++ b/doc/examples/plot_entropy.py @@ -39,8 +39,7 @@ img = noise + 128 entr_img = entropy(img, disk(10)) -fig, ax = plt.subplots(1, 3, figsize=(8, 3)) -ax0, ax1, ax2 = ax.ravel() +fig, (ax0, ax1, ax2) = plt.subplots(1, 3, figsize=(8, 3)) ax0.imshow(noise_mask, cmap=plt.cm.gray) ax0.set_xlabel("Noise mask")