DOC: update the edge mode example to include mirror

This commit is contained in:
Gregory R. Lee
2015-07-08 16:07:17 -04:00
parent 48622ca179
commit fb0b258deb
+3 -2
View File
@@ -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')