|
5 | 5 |
|
6 | 6 | How to create grid-shaped combinations of axes. |
7 | 7 |
|
8 | | - :func:`~matplotlib.pyplot.subplots` |
9 | | - Perhaps the primary function used to create figures and axes. |
10 | | - It's also similar to :func:`.matplotlib.pyplot.subplot`, |
11 | | - but creates and places all axes on the figure at once. See also |
12 | | - `matplotlib.figure.Figure.subplots`. |
13 | | -
|
14 | | - :class:`~matplotlib.gridspec.GridSpec` |
15 | | - Specifies the geometry of the grid that a subplot will be |
16 | | - placed. The number of rows and number of columns of the grid |
17 | | - need to be set. Optionally, the subplot layout parameters |
18 | | - (e.g., left, right, etc.) can be tuned. |
19 | | -
|
20 | | - :class:`~matplotlib.gridspec.SubplotSpec` |
21 | | - Specifies the location of the subplot in the given *GridSpec*. |
22 | | -
|
23 | | - :func:`~matplotlib.pyplot.subplot2grid` |
24 | | - A helper function that is similar to |
25 | | - :func:`~matplotlib.pyplot.subplot`, |
26 | | - but uses 0-based indexing and let subplot to occupy multiple cells. |
27 | | - This function is not covered in this tutorial. |
28 | | -
|
| 8 | +`~matplotlib.pyplot.subplots` |
| 9 | + The primary function used to create figures and axes. It is similar to |
| 10 | + `.pyplot.subplot`, but creates and places all axes on the figure at once. |
| 11 | + See also `.Figure.subplots`. |
| 12 | +
|
| 13 | +`~matplotlib.gridspec.GridSpec` |
| 14 | + Specifies the geometry of the grid that a subplot will be |
| 15 | + placed. The number of rows and number of columns of the grid |
| 16 | + need to be set. Optionally, the subplot layout parameters |
| 17 | + (e.g., left, right, etc.) can be tuned. |
| 18 | +
|
| 19 | +`~matplotlib.gridspec.SubplotSpec` |
| 20 | + Specifies the location of the subplot in the given `.GridSpec`. |
| 21 | +
|
| 22 | +`~matplotlib.pyplot.subplot2grid` |
| 23 | + A helper function that is similar to `.pyplot.subplot`, |
| 24 | + but uses 0-based indexing and let subplot to occupy multiple cells. |
| 25 | + This function is not covered in this tutorial. |
29 | 26 | """ |
30 | 27 |
|
31 | 28 | import matplotlib.pyplot as plt |
|
0 commit comments