@@ -51,6 +51,9 @@ def test_constrained_layout2():
5151@image_comparison (['constrained_layout3.png' ])
5252def test_constrained_layout3 ():
5353 """Test constrained_layout for colorbars with subplots"""
54+ # Remove this line when this test image is regenerated.
55+ plt .rcParams ['pcolormesh.snap' ] = False
56+
5457 fig , axs = plt .subplots (2 , 2 , constrained_layout = True )
5558 for nn , ax in enumerate (axs .flat ):
5659 pcm = example_pcolor (ax , fontsize = 24 )
@@ -64,6 +67,9 @@ def test_constrained_layout3():
6467@image_comparison (['constrained_layout4' ])
6568def test_constrained_layout4 ():
6669 """Test constrained_layout for a single colorbar with subplots"""
70+ # Remove this line when this test image is regenerated.
71+ plt .rcParams ['pcolormesh.snap' ] = False
72+
6773 fig , axs = plt .subplots (2 , 2 , constrained_layout = True )
6874 for ax in axs .flat :
6975 pcm = example_pcolor (ax , fontsize = 24 )
@@ -76,6 +82,9 @@ def test_constrained_layout5():
7682 Test constrained_layout for a single colorbar with subplots,
7783 colorbar bottom
7884 """
85+ # Remove this line when this test image is regenerated.
86+ plt .rcParams ['pcolormesh.snap' ] = False
87+
7988 fig , axs = plt .subplots (2 , 2 , constrained_layout = True )
8089 for ax in axs .flat :
8190 pcm = example_pcolor (ax , fontsize = 24 )
@@ -87,6 +96,9 @@ def test_constrained_layout5():
8796@image_comparison (['constrained_layout6.png' ])
8897def test_constrained_layout6 ():
8998 """Test constrained_layout for nested gridspecs"""
99+ # Remove this line when this test image is regenerated.
100+ plt .rcParams ['pcolormesh.snap' ] = False
101+
90102 fig = plt .figure (constrained_layout = True )
91103 gs = fig .add_gridspec (1 , 2 , figure = fig )
92104 gsl = gs [0 ].subgridspec (2 , 2 )
@@ -126,6 +138,9 @@ def test_constrained_layout7():
126138@image_comparison (['constrained_layout8.png' ])
127139def test_constrained_layout8 ():
128140 """Test for gridspecs that are not completely full"""
141+ # Remove this line when this test image is regenerated.
142+ plt .rcParams ['pcolormesh.snap' ] = False
143+
129144 fig = plt .figure (figsize = (10 , 5 ), constrained_layout = True )
130145 gs = gridspec .GridSpec (3 , 5 , figure = fig )
131146 axs = []
@@ -153,6 +168,9 @@ def test_constrained_layout8():
153168@image_comparison (['constrained_layout9.png' ])
154169def test_constrained_layout9 ():
155170 """Test for handling suptitle and for sharex and sharey"""
171+ # Remove this line when this test image is regenerated.
172+ plt .rcParams ['pcolormesh.snap' ] = False
173+
156174 fig , axs = plt .subplots (2 , 2 , constrained_layout = True ,
157175 sharex = False , sharey = False )
158176 for ax in axs .flat :
@@ -176,6 +194,9 @@ def test_constrained_layout10():
176194@image_comparison (['constrained_layout11.png' ])
177195def test_constrained_layout11 ():
178196 """Test for multiple nested gridspecs"""
197+ # Remove this line when this test image is regenerated.
198+ plt .rcParams ['pcolormesh.snap' ] = False
199+
179200 fig = plt .figure (constrained_layout = True , figsize = (13 , 3 ))
180201 gs0 = gridspec .GridSpec (1 , 2 , figure = fig )
181202 gsl = gridspec .GridSpecFromSubplotSpec (1 , 2 , gs0 [0 ])
@@ -195,6 +216,9 @@ def test_constrained_layout11():
195216@image_comparison (['constrained_layout11rat.png' ])
196217def test_constrained_layout11rat ():
197218 """Test for multiple nested gridspecs with width_ratios"""
219+ # Remove this line when this test image is regenerated.
220+ plt .rcParams ['pcolormesh.snap' ] = False
221+
198222 fig = plt .figure (constrained_layout = True , figsize = (10 , 3 ))
199223 gs0 = gridspec .GridSpec (1 , 2 , figure = fig , width_ratios = [6 , 1 ])
200224 gsl = gridspec .GridSpecFromSubplotSpec (1 , 2 , gs0 [0 ])
@@ -236,6 +260,9 @@ def test_constrained_layout12():
236260@image_comparison (['constrained_layout13.png' ], tol = 2.e-2 )
237261def test_constrained_layout13 ():
238262 """Test that padding works."""
263+ # Remove this line when this test image is regenerated.
264+ plt .rcParams ['pcolormesh.snap' ] = False
265+
239266 fig , axs = plt .subplots (2 , 2 , constrained_layout = True )
240267 for ax in axs .flat :
241268 pcm = example_pcolor (ax , fontsize = 12 )
@@ -246,6 +273,9 @@ def test_constrained_layout13():
246273@image_comparison (['constrained_layout14.png' ])
247274def test_constrained_layout14 ():
248275 """Test that padding works."""
276+ # Remove this line when this test image is regenerated.
277+ plt .rcParams ['pcolormesh.snap' ] = False
278+
249279 fig , axs = plt .subplots (2 , 2 , constrained_layout = True )
250280 for ax in axs .flat :
251281 pcm = example_pcolor (ax , fontsize = 12 )
@@ -374,6 +404,8 @@ def test_colorbar_location():
374404 Test that colorbar handling is as expected for various complicated
375405 cases...
376406 """
407+ # Remove this line when this test image is regenerated.
408+ plt .rcParams ['pcolormesh.snap' ] = False
377409
378410 fig , axs = plt .subplots (4 , 5 , constrained_layout = True )
379411 for ax in axs .flat :
0 commit comments