Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a8351b9

Browse files
committed
TST: add test for gridspec repr
1 parent fffe9f3 commit a8351b9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/matplotlib/tests/test_gridspec.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@ def test_height_ratios():
2929
def test_repr():
3030
ss = gridspec.GridSpec(3, 3)[2, 1:3]
3131
assert repr(ss) == "GridSpec(3, 3)[2:3, 1:3]"
32+
33+
ss = gridspec.GridSpec(2, 2,
34+
height_ratios=(3, 1),
35+
width_ratios=(1, 3))
36+
assert repr(ss) == \
37+
"GridSpec(2, 2, height_ratios=(3, 1), width_ratios=(1, 3))"

0 commit comments

Comments
 (0)