From fb0b258deb78c8da8332125a64a7121019b4ec6c Mon Sep 17 00:00:00 2001 From: "Gregory R. Lee" Date: Wed, 8 Jul 2015 16:07:17 -0400 Subject: [PATCH] DOC: update the edge mode example to include mirror --- doc/examples/plot_edge_modes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/examples/plot_edge_modes.py b/doc/examples/plot_edge_modes.py index bb99ac68..3ef4f408 100644 --- a/doc/examples/plot_edge_modes.py +++ b/doc/examples/plot_edge_modes.py @@ -17,9 +17,10 @@ img[:8, :8] += 1 img[:4, :4] += 1 img[:2, :2] += 1 img[:1, :1] += 2 +img[8, 8] = 4 -modes = ['constant', 'nearest', 'wrap', 'reflect'] -fig, axes = plt.subplots(1, 4, figsize=(12, 3)) +modes = ['constant', 'nearest', 'wrap', 'reflect', 'mirror'] +fig, axes = plt.subplots(1, 5, figsize=(15, 5)) for n, mode in enumerate(modes): img_extended = extend_image(img, pad=img.shape[0], mode=mode) axes[n].imshow(img_extended, cmap=plt.cm.gray, interpolation='nearest')