Radon transform example: Remove semicolons.

This commit is contained in:
Jostein Bø Fløystad
2013-06-09 21:32:38 +02:00
parent fcec46eb0d
commit 89e6215241
+7 -7
View File
@@ -31,21 +31,21 @@ image = rescale(image, scale=0.4)
plt.figure(figsize=(8, 8.5))
plt.subplot(221)
plt.title("Original");
plt.title("Original")
plt.imshow(image, cmap=plt.cm.Greys_r)
plt.subplot(222)
projections = radon(image, theta=[0, 45, 90])
plt.plot(projections);
plt.plot(projections)
plt.title("Projections at\n0, 45 and 90 degrees")
plt.xlabel("Projection axis");
plt.ylabel("Intensity");
plt.xlabel("Projection axis")
plt.ylabel("Intensity")
projections = radon(image)
plt.subplot(223)
plt.title("Radon transform\n(Sinogram)");
plt.xlabel("Projection angle (degrees)");
plt.ylabel("Projection axis");
plt.title("Radon transform\n(Sinogram)")
plt.xlabel("Projection angle (degrees)")
plt.ylabel("Projection axis")
plt.imshow(projections, aspect='auto')
reconstruction = iradon(projections)