Commit a6b936f5 authored by Taddes Kroes's avatar Taddes Kroes

improc ass4: Added titles to and removed axes from 'jet' subplots.

parent 5f676a7c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
from numpy import zeros, arange, meshgrid, array, matrix from numpy import zeros, arange, meshgrid, array, matrix
from math import ceil, exp, pi, sqrt from math import ceil, exp, pi, sqrt
from matplotlib.pyplot import imread, imshow, plot, xlabel, ylabel, show, \ from matplotlib.pyplot import imread, imshow, plot, xlabel, ylabel, show, \
subplot, xlim, savefig subplot, xlim, savefig, axis
from mpl_toolkits.mplot3d import Axes3D from mpl_toolkits.mplot3d import Axes3D
from scipy.ndimage import convolve, convolve1d from scipy.ndimage import convolve, convolve1d
from time import time from time import time
...@@ -164,19 +164,24 @@ if __name__ == '__main__': ...@@ -164,19 +164,24 @@ if __name__ == '__main__':
exit_with_usage() exit_with_usage()
s = float(argv[2]) s = float(argv[2])
subplot(331, title='Fs')
subplot(331)
imshow(gD(F, s, 0, 0), cmap='gray') imshow(gD(F, s, 0, 0), cmap='gray')
subplot(334) axis('off')
subplot(334, title='Fx')
imshow(gD(F, s, 1, 0), cmap='gray') imshow(gD(F, s, 1, 0), cmap='gray')
subplot(335) axis('off')
subplot(335, title='Fy')
imshow(gD(F, s, 0, 1), cmap='gray') imshow(gD(F, s, 0, 1), cmap='gray')
subplot(337) axis('off')
subplot(337, title='Fxx')
imshow(gD(F, s, 2, 0), cmap='gray') imshow(gD(F, s, 2, 0), cmap='gray')
subplot(338) axis('off')
subplot(338, title='Fxy')
imshow(gD(F, s, 1, 1), cmap='gray') imshow(gD(F, s, 1, 1), cmap='gray')
subplot(339) axis('off')
subplot(339, title='Fyy')
imshow(gD(F, s, 0, 2), cmap='gray') imshow(gD(F, s, 0, 2), cmap='gray')
axis('off')
else: else:
exit_with_usage() exit_with_usage()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment