|
34 | 34 | The following commands are used to create text in the pyplot
|
35 | 35 | interface and the object-oriented API:
|
36 | 36 |
|
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`. |
39 | 42 |
|
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`. |
42 | 46 |
|
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. |
45 | 48 |
|
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. |
48 | 50 |
|
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`. |
51 | 52 |
|
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`. |
54 | 55 |
|
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 | +=================== =================== ====================================== |
58 | 58 |
|
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. |
64 | 63 | """
|
65 | 64 |
|
66 | 65 | import matplotlib
|
|
0 commit comments