changed f to fig

This commit is contained in:
Siva Prasad Varma
2014-03-19 17:18:33 +05:30
parent febb4f09ca
commit a89dd4dedd
26 changed files with 50 additions and 50 deletions
+3 -3
View File
@@ -37,15 +37,15 @@ threshold_global_otsu = threshold_otsu(img)
global_otsu = img >= threshold_global_otsu
f, ax = plt.subplots(2, 2, figsize=(8, 5))
fig, ax = plt.subplots(2, 2, figsize=(8, 5))
ax1, ax2, ax3, ax4 = ax.ravel()
f.colorbar(ax1.imshow(img, cmap=plt.cm.gray),
fig.colorbar(ax1.imshow(img, cmap=plt.cm.gray),
ax=ax1, orientation='horizontal')
ax1.set_title('Original')
ax1.axis('off')
f.colorbar(ax2.imshow(local_otsu, cmap=plt.cm.gray),
fig.colorbar(ax2.imshow(local_otsu, cmap=plt.cm.gray),
ax=ax2, orientation='horizontal')
ax2.set_title('Local Otsu (radius=%d)' % radius)
ax2.axis('off')