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
@@ -37,7 +37,7 @@ threshold_global_otsu = threshold_otsu(img)
global_otsu = img >= threshold_global_otsu
fig, ax = plt.subplots(2, 2, figsize=(8, 5))
fig, ax = plt.subplots(2, 2, figsize=(8, 5), sharex=True, sharey=True)
ax1, ax2, ax3, ax4 = ax.ravel()
fig.colorbar(ax1.imshow(img, cmap=plt.cm.gray),