From ee344148918ea27a95941ea7898106a536d248d5 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Fri, 14 Jun 2019 02:00:26 +0200 Subject: [PATCH] Restore thumbnail of usage guide --- tutorials/introductory/usage.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/tutorials/introductory/usage.py b/tutorials/introductory/usage.py index 3e58c870ff00..3675f8f0db42 100644 --- a/tutorials/introductory/usage.py +++ b/tutorials/introductory/usage.py @@ -7,7 +7,7 @@ help you get started with Matplotlib. """ -# sphinx_gallery_thumbnail_number = 4 +# sphinx_gallery_thumbnail_number = 3 import matplotlib.pyplot as plt import numpy as np @@ -66,16 +66,15 @@ # number of :class:`~matplotlib.axes.Axes`, but will typically have # at least one. # -# The easiest way to create a new figure is with pyplot: - -fig = plt.figure() # an empty figure with no Axes -fig, ax = plt.subplots() # a figure with a single Axes -fig, axs = plt.subplots(2, 2) # a figure with a 2x2 grid of Axes - +# The easiest way to create a new figure is with pyplot:: +# +# fig = plt.figure() # an empty figure with no Axes +# fig, ax = plt.subplots() # a figure with a single Axes +# fig, axs = plt.subplots(2, 2) # a figure with a 2x2 grid of Axes +# # It's convenient to create the axes together with the figure, but you can # also add axes later on, allowing for more complex axes layouts. - -############################################################################### +# # :class:`~matplotlib.axes.Axes` # ------------------------------ #