@@ -51,8 +51,6 @@ def test_constrained_layout2():
51
51
@image_comparison (['constrained_layout3.png' ])
52
52
def test_constrained_layout3 ():
53
53
"""Test constrained_layout for colorbars with subplots"""
54
- # Remove this line when this test image is regenerated.
55
- plt .rcParams ['pcolormesh.snap' ] = False
56
54
57
55
fig , axs = plt .subplots (2 , 2 , constrained_layout = True )
58
56
for nn , ax in enumerate (axs .flat ):
@@ -67,8 +65,6 @@ def test_constrained_layout3():
67
65
@image_comparison (['constrained_layout4.png' ])
68
66
def test_constrained_layout4 ():
69
67
"""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
68
73
69
fig , axs = plt .subplots (2 , 2 , constrained_layout = True )
74
70
for ax in axs .flat :
@@ -82,8 +78,6 @@ def test_constrained_layout5():
82
78
Test constrained_layout for a single colorbar with subplots,
83
79
colorbar bottom
84
80
"""
85
- # Remove this line when this test image is regenerated.
86
- plt .rcParams ['pcolormesh.snap' ] = False
87
81
88
82
fig , axs = plt .subplots (2 , 2 , constrained_layout = True )
89
83
for ax in axs .flat :
@@ -96,8 +90,6 @@ def test_constrained_layout5():
96
90
@image_comparison (['constrained_layout6.png' ], tol = 0.002 )
97
91
def test_constrained_layout6 ():
98
92
"""Test constrained_layout for nested gridspecs"""
99
- # Remove this line when this test image is regenerated.
100
- plt .rcParams ['pcolormesh.snap' ] = False
101
93
102
94
fig = plt .figure (constrained_layout = True )
103
95
gs = fig .add_gridspec (1 , 2 , figure = fig )
@@ -139,8 +131,6 @@ def test_constrained_layout7():
139
131
@image_comparison (['constrained_layout8.png' ])
140
132
def test_constrained_layout8 ():
141
133
"""Test for gridspecs that are not completely full"""
142
- # Remove this line when this test image is regenerated.
143
- plt .rcParams ['pcolormesh.snap' ] = False
144
134
145
135
fig = plt .figure (figsize = (10 , 5 ), constrained_layout = True )
146
136
gs = gridspec .GridSpec (3 , 5 , figure = fig )
@@ -169,8 +159,6 @@ def test_constrained_layout8():
169
159
@image_comparison (['constrained_layout9.png' ])
170
160
def test_constrained_layout9 ():
171
161
"""Test for handling suptitle and for sharex and sharey"""
172
- # Remove this line when this test image is regenerated.
173
- plt .rcParams ['pcolormesh.snap' ] = False
174
162
175
163
fig , axs = plt .subplots (2 , 2 , constrained_layout = True ,
176
164
sharex = False , sharey = False )
@@ -195,8 +183,6 @@ def test_constrained_layout10():
195
183
@image_comparison (['constrained_layout11.png' ])
196
184
def test_constrained_layout11 ():
197
185
"""Test for multiple nested gridspecs"""
198
- # Remove this line when this test image is regenerated.
199
- plt .rcParams ['pcolormesh.snap' ] = False
200
186
201
187
fig = plt .figure (constrained_layout = True , figsize = (13 , 3 ))
202
188
gs0 = gridspec .GridSpec (1 , 2 , figure = fig )
@@ -217,8 +203,6 @@ def test_constrained_layout11():
217
203
@image_comparison (['constrained_layout11rat.png' ])
218
204
def test_constrained_layout11rat ():
219
205
"""Test for multiple nested gridspecs with width_ratios"""
220
- # Remove this line when this test image is regenerated.
221
- plt .rcParams ['pcolormesh.snap' ] = False
222
206
223
207
fig = plt .figure (constrained_layout = True , figsize = (10 , 3 ))
224
208
gs0 = gridspec .GridSpec (1 , 2 , figure = fig , width_ratios = [6 , 1 ])
@@ -261,8 +245,6 @@ def test_constrained_layout12():
261
245
@image_comparison (['constrained_layout13.png' ], tol = 2.e-2 )
262
246
def test_constrained_layout13 ():
263
247
"""Test that padding works."""
264
- # Remove this line when this test image is regenerated.
265
- plt .rcParams ['pcolormesh.snap' ] = False
266
248
267
249
fig , axs = plt .subplots (2 , 2 , constrained_layout = True )
268
250
for ax in axs .flat :
@@ -274,8 +256,6 @@ def test_constrained_layout13():
274
256
@image_comparison (['constrained_layout14.png' ])
275
257
def test_constrained_layout14 ():
276
258
"""Test that padding works."""
277
- # Remove this line when this test image is regenerated.
278
- plt .rcParams ['pcolormesh.snap' ] = False
279
259
280
260
fig , axs = plt .subplots (2 , 2 , constrained_layout = True )
281
261
for ax in axs .flat :
@@ -402,9 +382,6 @@ def test_colorbar_location():
402
382
Test that colorbar handling is as expected for various complicated
403
383
cases...
404
384
"""
405
- # Remove this line when this test image is regenerated.
406
- plt .rcParams ['pcolormesh.snap' ] = False
407
-
408
385
fig , axs = plt .subplots (4 , 5 , constrained_layout = True )
409
386
for ax in axs .flat :
410
387
pcm = example_pcolor (ax )
0 commit comments