adding shared axes to examples with multiple plots

This commit is contained in:
martin
2015-10-12 15:58:57 +02:00
parent a2d74e5260
commit 681be3fc58
14 changed files with 89 additions and 41 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ image = color.rgb2gray(data.astronaut())
fd, hog_image = hog(image, orientations=8, pixels_per_cell=(16, 16),
cells_per_block=(1, 1), visualise=True)
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(8, 4))
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(8, 4), sharex=True, sharey=True)
ax1.axis('off')
ax1.imshow(image, cmap=plt.cm.gray)