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

Skip to content

Commit 9052785

Browse files
Add tests for both height and width ratios
1 parent d1f0191 commit 9052785

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

lib/matplotlib/tests/test_gridspec.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,19 @@ def test_equal():
88
assert_equal(gs[:, 0], gs[:, 0])
99

1010

11-
def test_ratios():
11+
def test_width_ratios():
1212
"""
1313
Addresses issue #5835.
1414
See at https://github.com/matplotlib/matplotlib/issues/5835.
1515
"""
1616
assert_raises(ValueError, gridspec.GridSpec,
17-
1, 2, width_ratios=[2, 1, 3], height_ratios=[3, 4])
17+
1, 1, width_ratios=[2, 1, 3])
18+
19+
20+
def test_height_ratios():
21+
"""
22+
Addresses issue #5835.
23+
See at https://github.com/matplotlib/matplotlib/issues/5835.
24+
"""
25+
assert_raises(ValueError, gridspec.GridSpec,
26+
1, 1, height_ratios=[2, 1, 3])

0 commit comments

Comments
 (0)