@@ -51,6 +51,9 @@ 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
fig , axs = plt .subplots (2 , 2 , constrained_layout = True )
55
58
for nn , ax in enumerate (axs .flat ):
56
59
pcm = example_pcolor (ax , fontsize = 24 )
@@ -64,6 +67,9 @@ def test_constrained_layout3():
64
67
@image_comparison (['constrained_layout4' ])
65
68
def test_constrained_layout4 ():
66
69
"""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
+
67
73
fig , axs = plt .subplots (2 , 2 , constrained_layout = True )
68
74
for ax in axs .flat :
69
75
pcm = example_pcolor (ax , fontsize = 24 )
@@ -76,6 +82,9 @@ def test_constrained_layout5():
76
82
Test constrained_layout for a single colorbar with subplots,
77
83
colorbar bottom
78
84
"""
85
+ # Remove this line when this test image is regenerated.
86
+ plt .rcParams ['pcolormesh.snap' ] = False
87
+
79
88
fig , axs = plt .subplots (2 , 2 , constrained_layout = True )
80
89
for ax in axs .flat :
81
90
pcm = example_pcolor (ax , fontsize = 24 )
@@ -87,6 +96,9 @@ def test_constrained_layout5():
87
96
@image_comparison (['constrained_layout6.png' ])
88
97
def test_constrained_layout6 ():
89
98
"""Test constrained_layout for nested gridspecs"""
99
+ # Remove this line when this test image is regenerated.
100
+ plt .rcParams ['pcolormesh.snap' ] = False
101
+
90
102
fig = plt .figure (constrained_layout = True )
91
103
gs = fig .add_gridspec (1 , 2 , figure = fig )
92
104
gsl = gs [0 ].subgridspec (2 , 2 )
@@ -126,6 +138,9 @@ def test_constrained_layout7():
126
138
@image_comparison (['constrained_layout8.png' ])
127
139
def test_constrained_layout8 ():
128
140
"""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
+
129
144
fig = plt .figure (figsize = (10 , 5 ), constrained_layout = True )
130
145
gs = gridspec .GridSpec (3 , 5 , figure = fig )
131
146
axs = []
@@ -153,6 +168,9 @@ def test_constrained_layout8():
153
168
@image_comparison (['constrained_layout9.png' ])
154
169
def test_constrained_layout9 ():
155
170
"""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
+
156
174
fig , axs = plt .subplots (2 , 2 , constrained_layout = True ,
157
175
sharex = False , sharey = False )
158
176
for ax in axs .flat :
@@ -176,6 +194,9 @@ def test_constrained_layout10():
176
194
@image_comparison (['constrained_layout11.png' ])
177
195
def test_constrained_layout11 ():
178
196
"""Test for multiple nested gridspecs"""
197
+ # Remove this line when this test image is regenerated.
198
+ plt .rcParams ['pcolormesh.snap' ] = False
199
+
179
200
fig = plt .figure (constrained_layout = True , figsize = (13 , 3 ))
180
201
gs0 = gridspec .GridSpec (1 , 2 , figure = fig )
181
202
gsl = gridspec .GridSpecFromSubplotSpec (1 , 2 , gs0 [0 ])
@@ -195,6 +216,9 @@ def test_constrained_layout11():
195
216
@image_comparison (['constrained_layout11rat.png' ])
196
217
def test_constrained_layout11rat ():
197
218
"""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
+
198
222
fig = plt .figure (constrained_layout = True , figsize = (10 , 3 ))
199
223
gs0 = gridspec .GridSpec (1 , 2 , figure = fig , width_ratios = [6 , 1 ])
200
224
gsl = gridspec .GridSpecFromSubplotSpec (1 , 2 , gs0 [0 ])
@@ -236,6 +260,9 @@ def test_constrained_layout12():
236
260
@image_comparison (['constrained_layout13.png' ], tol = 2.e-2 )
237
261
def test_constrained_layout13 ():
238
262
"""Test that padding works."""
263
+ # Remove this line when this test image is regenerated.
264
+ plt .rcParams ['pcolormesh.snap' ] = False
265
+
239
266
fig , axs = plt .subplots (2 , 2 , constrained_layout = True )
240
267
for ax in axs .flat :
241
268
pcm = example_pcolor (ax , fontsize = 12 )
@@ -246,6 +273,9 @@ def test_constrained_layout13():
246
273
@image_comparison (['constrained_layout14.png' ])
247
274
def test_constrained_layout14 ():
248
275
"""Test that padding works."""
276
+ # Remove this line when this test image is regenerated.
277
+ plt .rcParams ['pcolormesh.snap' ] = False
278
+
249
279
fig , axs = plt .subplots (2 , 2 , constrained_layout = True )
250
280
for ax in axs .flat :
251
281
pcm = example_pcolor (ax , fontsize = 12 )
@@ -374,6 +404,8 @@ def test_colorbar_location():
374
404
Test that colorbar handling is as expected for various complicated
375
405
cases...
376
406
"""
407
+ # Remove this line when this test image is regenerated.
408
+ plt .rcParams ['pcolormesh.snap' ] = False
377
409
378
410
fig , axs = plt .subplots (4 , 5 , constrained_layout = True )
379
411
for ax in axs .flat :
0 commit comments