Skip to content

Commit 490428c

Browse files
authored
Merge pull request matplotlib#19207 from timhoffm/doc-grouper
Fix Grouper example code
2 parents 099c173 + 3d16c24 commit 490428c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/cbook/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,8 @@ class Grouper:
820820
>>> grp.join(a, b)
821821
>>> grp.join(b, c)
822822
>>> grp.join(d, e)
823-
>>> sorted(map(tuple, grp))
824-
[(a, b, c), (d, e)]
823+
>>> list(grp)
824+
[[a, b, c], [d, e]]
825825
>>> grp.joined(a, b)
826826
True
827827
>>> grp.joined(a, c)

0 commit comments

Comments
 (0)