Skip to content

Commit 937dfc7

Browse files
authored
Merge pull request #9846 from anntzer/rst-table
Move enumeration of text tutorial into table.
2 parents 4fc36df + 0ea99e2 commit 937dfc7

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

tutorials/text/text_intro.py

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,33 +34,32 @@
3434
The following commands are used to create text in the pyplot
3535
interface and the object-oriented API:
3636
37-
* `matplotlib.pyplot.text` - add text at an arbitrary location to the Axes;
38-
`matplotlib.axes.Axes.text` in the API.
37+
=================== =================== ======================================
38+
`~.pyplot` API OO API description
39+
=================== =================== ======================================
40+
`~.pyplot.text` `~.Axes.text` Add text at an arbitrary location of
41+
the `~.Axes`.
3942
40-
* `matplotlib.pyplot.xlabel` - add a label to the x-axis;
41-
`matplotlib.axes.Axes.set_xlabel` in the API.
43+
`~.pyplot.annotate` `~.Axes.annotate` Add an annotation, with an optional
44+
arrow, at an arbitrary location of the
45+
`~.Axes`.
4246
43-
* `matplotlib.pyplot.ylabel` - add a label to the y-axis;
44-
`matplotlib.axes.Axes.set_ylabel` in the API.
47+
`~.pyplot.xlabel` `~.Axes.set_xlabel` Add a label to the `~.Axes`\\'s x-axis.
4548
46-
* `matplotlib.pyplot.title` - add a title to the `~matplotlib.axes.Axes`;
47-
`matplotlib.axes.Axes.set_title` in the API.
49+
`~.pyplot.ylabel` `~.Axes.set_ylabel` Add a label to the `~.Axes`\\'s y-axis.
4850
49-
* `matplotlib.pyplot.figtext` - add text at an arbitrary location to the
50-
`~matplotlib.figure.Figure`; `matplotlib.figure.Figure.text` in the API.
51+
`~.pyplot.title` `~.Axes.set_title` Add a title to the `~.Axes`.
5152
52-
* `matplotlib.pyplot.suptitle` - add a title to the
53-
`~matplotlib.figure.Figure`; `matplotlib.figure.Figure.suptitle` in the API.
53+
`~.pyplot.figtext` `~.Figure.text` Add text at an arbitrary location of
54+
the `~.Figure`.
5455
55-
* `matplotlib.pyplot.annotate` - add an annotation, with
56-
optional arrow, to the `~matplotlib.axes.Axes`;
57-
`matplotlib.axes.Axes.annotate` in the API.
56+
`~.pyplot.suptitle` `~.Figure.suptitle` Add a title to the `~.Figure`.
57+
=================== =================== ======================================
5858
59-
All of these functions create and return a
60-
`matplotlib.text.Text` instance, which can be configured with a
61-
variety of font and other properties. The example below shows all of
62-
these commands in action, and more detail is provided in the sections that
63-
follow.
59+
All of these functions create and return a `~.text.Text` instance, which can
60+
be configured with a variety of font and other properties. The example below
61+
shows all of these commands in action, and more detail is provided in the
62+
sections that follow.
6463
"""
6564

6665
import matplotlib

0 commit comments

Comments
 (0)