8000 Restore thumbnail of usage guide · matplotlib/matplotlib@ee34414 · GitHub
[go: up one dir, main page]

Skip to content

Commit ee34414

Browse files
committed
Restore thumbnail of usage guide
1 parent b148183 commit ee34414

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

tutorials/introductory/usage.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
help you get started with Matplotlib.
88
"""
99

10-
# sphinx_gallery_thumbnail_number = 4
10+
# sphinx_gallery_thumbnail_number = 3
1111
import matplotlib.pyplot as plt
1212
import numpy as np
1313

@@ -66,16 +66,15 @@
6666
# number of :class:`~matplotlib.axes.Axes`, but will typically have
6767
# at least one.
6868
#
69-
# The easiest way to create a new figure is with pyplot:
70-
71-
fig = plt.figure() # an empty figure with no Axes
72-
fig, ax = plt.subplots() # a figure with a single Axes
73-
fig, axs = plt.subplots(2, 2) # a figure with a 2x2 grid of Axes
74-
69+
# The easiest way to create a new figure is with pyplot::
70+
#
71+
# fig = plt.figure() # an empty figure with no Axes
72+
# fig, ax = plt.subplots() # a figure with a single Axes
73+
# fig, axs = plt.subplots(2, 2) # a figure with a 2x2 grid of Axes
74+
#
7575
# It's convenient to create the axes together with the figure, but you can
7676
# also add axes later on, allowing for more complex axes layouts.
77-
78-
###############################################################################
77+
#
7978
# :class:`~matplotlib.axes.Axes`
8079
# ------------------------------
8180
#

0 commit comments

Comments
 (0)
0