diff --git a/galleries/examples/specialty_plots/mri_demo.py b/galleries/examples/specialty_plots/mri_demo.py deleted file mode 100644 index 1580ee9a733d..000000000000 --- a/galleries/examples/specialty_plots/mri_demo.py +++ /dev/null @@ -1,23 +0,0 @@ -""" -=== -MRI -=== - -This example illustrates how to read an image (of an MRI) into a NumPy -array, and display it in greyscale using `~.axes.Axes.imshow`. -""" - -import matplotlib.pyplot as plt -import numpy as np - -import matplotlib.cbook as cbook - -# Data are 256x256 16 bit integers. -with cbook.get_sample_data('s1045.ima.gz') as dfile: - im = np.frombuffer(dfile.read(), np.uint16).reshape((256, 256)) - -fig, ax = plt.subplots(num="MRI_demo") -ax.imshow(im, cmap="gray") -ax.axis('off') - -plt.show() diff --git a/galleries/examples/specialty_plots/mri_with_eeg.py b/galleries/examples/specialty_plots/mri_with_eeg.py index 80d06476fff6..8197250ddbe6 100644 --- a/galleries/examples/specialty_plots/mri_with_eeg.py +++ b/galleries/examples/specialty_plots/mri_with_eeg.py @@ -5,6 +5,8 @@ Displays a set of subplots with an MRI image, its intensity histogram and some EEG traces. + +.. redirect-from:: /gallery/specialty_plots/mri_demo """ import matplotlib.pyplot as plt