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

Skip to content

Commit 8727205

Browse files
committed
Add note to test_tightlayout
1 parent 855407b commit 8727205

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/tests/test_tightlayout.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ def test_tight_layout5():
9494
def test_tight_layout6():
9595
'Test tight_layout for gridspec'
9696

97+
# This raises warnings since tight layout cannot
98+
# do this fully automatically. But the test is
99+
# correct since the layout is manually edited
97100
with warnings.catch_warnings():
98101
warnings.simplefilter("ignore", UserWarning)
99102
fig = plt.figure()

0 commit comments

Comments
 (0)