From 9e11e453b64424182e9221f32425df12612177f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jostein=20B=C3=B8=20Fl=C3=B8ystad?= Date: Mon, 24 Jun 2013 10:20:16 +0200 Subject: [PATCH] radon example: Display plots when run from command line. Call to matplotlib's show() was missing. --- doc/examples/plot_radon_transform.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/examples/plot_radon_transform.py b/doc/examples/plot_radon_transform.py index df3b1577..fb2d9dbd 100644 --- a/doc/examples/plot_radon_transform.py +++ b/doc/examples/plot_radon_transform.py @@ -76,6 +76,7 @@ plt.imshow(sinogram, cmap=plt.cm.Greys_r, extent=(0, 180, 0, sinogram.shape[0]), aspect='auto') plt.subplots_adjust(hspace=0.4, wspace=0.5) +plt.show() """ .. image:: PLOT2RST.current_figure @@ -107,6 +108,7 @@ plt.imshow(reconstruction_fbp, cmap=plt.cm.Greys_r) plt.subplot(122) plt.title("Reconstruction error\nFiltered back projection") plt.imshow(reconstruction_fbp - image, cmap=plt.cm.Greys_r, **imkwargs) +plt.show() """ .. image:: PLOT2RST.current_figure @@ -168,6 +170,7 @@ plt.imshow(reconstruction_sart2, cmap=plt.cm.Greys_r) plt.subplot(224) plt.title("Reconstruction error\nSART, 2 iterations") plt.imshow(reconstruction_sart2 - image, cmap=plt.cm.Greys_r, **imkwargs) +plt.show() """ .. image:: PLOT2RST.current_figure