Merge pull request #583 from josteinbf/radon-example-axes-fix

Radon transform example: Correct axis labels
This commit is contained in:
Johannes Schönberger
2013-06-10 12:46:07 -07:00
+8 -8
View File
@@ -31,22 +31,22 @@ 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 axis");
plt.ylabel("Intensity");
plt.imshow(projections)
plt.title("Radon transform\n(Sinogram)")
plt.xlabel("Projection angle (degrees)")
plt.ylabel("Projection axis")
plt.imshow(projections, aspect='auto')
reconstruction = iradon(projections)
plt.subplot(224)