File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -414,20 +414,21 @@ def do_3d_projection(self, renderer):
414
414
# pad ones
415
415
s = np .vstack (self ._offsets3d , np .ones (self ._offsets3d .shape [1 ]))
416
416
vxyzis = proj3d .proj_transform_vec_clip (s , renderer .M )
417
+ vzs = vxyzis [2 ]
417
418
418
- fcs = (zalpha (self ._facecolor3d , vxyzis [ 2 ] ) if self ._depthshade else
419
+ fcs = (zalpha (self ._facecolor3d , vzs ) if self ._depthshade else
419
420
self ._facecolor3d )
420
421
fcs = mcolors .to_rgba_array (fcs , self ._alpha )
421
422
self .set_facecolors (fcs )
422
423
423
- ecs = (zalpha (self ._edgecolor3d , vxyzis [ 2 ] ) if self ._depthshade else
424
+ ecs = (zalpha (self ._edgecolor3d , vzs ) if self ._depthshade else
424
425
self ._edgecolor3d )
425
426
ecs = mcolors .to_rgba_array (ecs , self ._alpha )
426
427
self .set_edgecolors (ecs )
427
428
PatchCollection .set_offsets (self , vxyzis [0 :2 ].T )
428
429
429
- if len (vxyzis ) > 0 :
430
- return min (vxyzis [ 2 ] )
430
+ if len (vzs ) > 0 :
431
+ return min (vzs )
431
432
else :
432
433
return np .nan
433
434
You can’t perform that action at this time.
0 commit comments