Skip to content

Commit 9594278

Browse files
committed
Use a grid to manage all compositions
In turn we use a single LayoutTree class.
1 parent 2577382 commit 9594278

File tree

9 files changed

+267
-580
lines changed

9 files changed

+267
-580
lines changed

plotnine/_mpl/layout_manager/_grid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ def __setitem__(
7979

8080
def iter_rows(self) -> Iterator[list[T | None]]:
8181
"""
82-
Yield rows
82+
Row by row
8383
"""
8484
n = self._grid.shape[0]
8585
for row in range(n):
8686
yield self[row, :]
8787

8888
def iter_cols(self) -> Iterator[list[T | None]]:
8989
"""
90-
Yield cols
90+
Column by column
9191
"""
9292
n = self._grid.shape[1]
9393
for col in range(n):

0 commit comments

Comments
 (0)