reverted subplot creation to preferred matplotlib style

This commit is contained in:
martin
2015-10-12 18:09:47 +02:00
parent be39c35325
commit 4e364c6087
2 changed files with 4 additions and 20 deletions
+1 -13
View File
@@ -100,19 +100,7 @@ for theta in (0, 1):
# Save kernel and the power image for each image
results.append((kernel, [power(img, kernel) for img in images]))
# Prepare exes for ploting
fig = plt.figure(figsize=(5, 6))
axes = np.zeros((5, 4), dtype=np.object)
# first column
for n in range(0, 5):
axes[n,0] = plt.subplot(5, 4, 1+n*4)
# the other columns, each column axes are shared
for m in range(1, 4):
axes[0,m] = plt.subplot(5, 4, 1+m, adjustable='box-forced')
for n in range(1, 5):
axes[n,m] = plt.subplot(5, 4, 1+n*4+m, sharex=axes[0,m], sharey=axes[0,m])
axes[n,m].set_adjustable('box-forced')
fig, axes = plt.subplots(nrows=5, ncols=4, figsize=(5, 6))
plt.gray()
fig.suptitle('Image responses for Gabor filter kernels', fontsize=12)