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

Skip to content

Commit f9d8cd7

Browse files
committed
TST: add a test
1 parent 250e840 commit f9d8cd7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/matplotlib/tests/test_tightlayout.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,3 +323,5 @@ def test_collapsed():
323323
plt.tight_layout()
324324
p2 = ax.get_position()
325325
assert p1.width == p2.width
326+
# test that passing a rect doesn't crash...
327+
plt.tight_layout(rect=[0, 0, 0.8, 0.8])

0 commit comments

Comments
 (0)