Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d888c07

Browse filesBrowse files
authored
Merge pull request #14550 from timhoffm/restore-usage-thumbnail
Restore thumbnail of usage guide
2 parents ffb118a + ee34414 commit d888c07
Copy full SHA for d888c07

File tree

Expand file treeCollapse file tree

1 file changed

+8
-9
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-9
lines changed

‎tutorials/introductory/usage.py

Copy file name to clipboardExpand all lines: tutorials/introductory/usage.py
+8-9Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.