8000 Merge pull request #27962 from timhoffm/doc-grid · matplotlib/matplotlib@f990868 · GitHub
[go: up one dir, main page]

Skip to content

Commit f990868

Browse files
authored
Merge pull request #27962 from timhoffm/doc-grid
DOC: Document axes_grid1.Grid attributes
2 parents 975b584 + 5a2e809 commit f990868

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

lib/mpl_toolkits/axes_grid1/axes_grid.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,26 @@ class Grid:
3838
displayed with a given aspect ratio; for example, it is difficult to
3939
display multiple images of a same size with some fixed padding between
4040
them. AxesGrid can be used in such case.
41+
42+
Attributes
43+
----------
44+
axes_all : list of Axes
45+
A flat list of Axes. Note that you can also access this directly
46+
from the grid. The following is equivalent ::
47+
48+
grid[i] == grid.axes_all[i]
49+
len(grid) == len(grid.axes_all)
50+
51+
axes_column : list of list of Axes
52+
A 2D list of Axes where the first index is the column. This results
53+
in the usage pattern ``grid.axes_column[col][row]``.
54+
axes_row : list of list of Axes
55+
A 2D list of Axes where the first index is the row. This results
56+
in the usage pattern ``grid.axes_row[row][col]``.
57+
axes_llc : Axes
58+
The Axes in the lower left corner.
59+
ngrids : int
60+
Number of Axes in the grid.
4161
"""
4262

4363
_defaultAxesClass = Axes
@@ -93,7 +113,8 @@ def __init__(self, fig,
93113
- "all": All axes are labelled.
94114
- "keep": Do not do anything.
95115
96-
axes_class : subclass of `matplotlib.axes.Axes`, default: None
116+
axes_class : subclass of `matplotlib.axes.Axes`, default: `.mpl_axes.Axes`
117+
The type of Axes to create.
97118
aspect : bool, default: False
98119
Whether the axes aspect ratio follows the aspect ratio of the data
99120
limits.

0 commit comments

Comments
 (0)
0