@@ -265,18 +265,23 @@ def test_scatter3d_sorting(fig_ref, fig_test, depthshade):
265
265
edgecolors [5 :9 , 1 :5 ] = 'C6'
266
266
edgecolors [5 :9 , 5 :9 ] = 'C7'
267
267
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 = [
269
273
a .flatten ()
270
- for a in [x , y , z , sizes , facecolors , edgecolors ]
274
+ for a in [x , y , z , sizes , facecolors , edgecolors , linewidths ]
271
275
]
272
276
273
277
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 ):
276
280
subset = (
277
281
(sizes != s ) |
278
282
(facecolors != fc ) |
279
- (edgecolors != ec )
283
+ (edgecolors != ec ) |
284
+ (linewidths != lw )
280
285
)
281
286
subset = np .ma .masked_array (z , subset , dtype = float )
282
287
@@ -286,12 +291,12 @@ def test_scatter3d_sorting(fig_ref, fig_test, depthshade):
286
291
# would not occur for the full scatter which has multiple colors.
287
292
fc = np .repeat (fc , sum (~ subset .mask ))
288
293
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 ,
290
295
depthshade = depthshade )
291
296
292
297
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 )
295
300
296
301
297
302
@pytest .mark .parametrize ('azim' , [- 50 , 130 ]) # yellow first, blue first
0 commit comments