@@ -265,18 +265,23 @@ def test_scatter3d_sorting(fig_ref, fig_test, depthshade):
265265 edgecolors [5 :9 , 1 :5 ] = 'C6'
266266 edgecolors [5 :9 , 5 :9 ] = 'C7'
267267
268- x , y , z , sizes , facecolors , edgecolors = [
268+ linewidths = np .full (z .shape , 2 )
269+ linewidths [0 ::2 , 0 ::2 ] = 5
270+ linewidths [1 ::2 , 1 ::2 ] = 5
271+
272+ x , y , z , sizes , facecolors , edgecolors , linewidths = [
269273 a .flatten ()
270- for a in [x , y , z , sizes , facecolors , edgecolors ]
274+ for a in [x , y , z , sizes , facecolors , edgecolors , linewidths ]
271275 ]
272276
273277 ax_ref = fig_ref .gca (projection = '3d' )
274- sets = (np .unique (a ) for a in [sizes , facecolors , edgecolors ])
275- for s , fc , ec in itertools .product (* sets ):
278+ sets = (np .unique (a ) for a in [sizes , facecolors , edgecolors , linewidths ])
279+ for s , fc , ec , lw in itertools .product (* sets ):
276280 subset = (
277281 (sizes != s ) |
278282 (facecolors != fc ) |
279- (edgecolors != ec )
283+ (edgecolors != ec ) |
284+ (linewidths != lw )
280285 )
281286 subset = np .ma .masked_array (z , subset , dtype = float )
282287
@@ -286,12 +291,12 @@ def test_scatter3d_sorting(fig_ref, fig_test, depthshade):
286291 # would not occur for the full scatter which has multiple colors.
287292 fc = np .repeat (fc , sum (~ subset .mask ))
288293
289- ax_ref .scatter (x , y , subset , s = s , fc = fc , ec = ec , alpha = 1 ,
294+ ax_ref .scatter (x , y , subset , s = s , fc = fc , ec = ec , lw = lw , alpha = 1 ,
290295 depthshade = depthshade )
291296
292297 ax_test = fig_test .gca (projection = '3d' )
293- ax_test .scatter (x , y , z , s = sizes , fc = facecolors , ec = edgecolors , alpha = 1 ,
294- depthshade = depthshade )
298+ ax_test .scatter (x , y , z , s = sizes , fc = facecolors , ec = edgecolors ,
299+ lw = linewidths , alpha = 1 , depthshade = depthshade )
295300
296301
297302@pytest .mark .parametrize ('azim' , [- 50 , 130 ]) # yellow first, blue first
0 commit comments