diff --git a/examples/subplots_axes_and_figures/subplot.py b/examples/subplots_axes_and_figures/subplot.py deleted file mode 100644 index 8457fba09926..000000000000 --- a/examples/subplots_axes_and_figures/subplot.py +++ /dev/null @@ -1,28 +0,0 @@ -""" -================= -Multiple subplots -================= - -Simple demo with multiple subplots. -""" -import numpy as np -import matplotlib.pyplot as plt - - -x1 = np.linspace(0.0, 5.0) -x2 = np.linspace(0.0, 2.0) - -y1 = np.cos(2 * np.pi * x1) * np.exp(-x1) -y2 = np.cos(2 * np.pi * x2) - -plt.subplot(2, 1, 1) -plt.plot(x1, y1, 'o-') -plt.title('A tale of 2 subplots') -plt.ylabel('Damped oscillation') - -plt.subplot(2, 1, 2) -plt.plot(x2, y2, '.-') -plt.xlabel('time (s)') -plt.ylabel('Undamped') - -plt.show() diff --git a/tutorials/introductory/sample_plots.py b/tutorials/introductory/sample_plots.py index 28a3c580eda9..6ad9db1c7503 100644 --- a/tutorials/introductory/sample_plots.py +++ b/tutorials/introductory/sample_plots.py @@ -29,7 +29,7 @@ Multiple axes (i.e. subplots) are created with the :func:`~matplotlib.pyplot.subplot` function: -.. figure:: ../../gallery/subplots_axes_and_figures/images/sphx_glr_subplot_001.png +.. figure:: ../../gallery/subplots_axes_and_figures/images/sphx_glr_subplots_demo_001.png :target: ../../gallery/subplots_axes_and_figures/subplot.html :align: center :scale: 50