There was an error while loading. Please reload this page.
1 parent b81c118 commit 0f7d41cCopy full SHA for 0f7d41c
1 file changed
lib/mpl_toolkits/mplot3d/art3d.py
@@ -414,20 +414,21 @@ def do_3d_projection(self, renderer):
414
# pad ones
415
s = np.vstack(self._offsets3d, np.ones(self._offsets3d.shape[1]))
416
vxyzis = proj3d.proj_transform_vec_clip(s, renderer.M)
417
+ vzs = vxyzis[2]
418
- fcs = (zalpha(self._facecolor3d, vxyzis[2]) if self._depthshade else
419
+ fcs = (zalpha(self._facecolor3d, vzs) if self._depthshade else
420
self._facecolor3d)
421
fcs = mcolors.to_rgba_array(fcs, self._alpha)
422
self.set_facecolors(fcs)
423
- ecs = (zalpha(self._edgecolor3d, vxyzis[2]) if self._depthshade else
424
+ ecs = (zalpha(self._edgecolor3d, vzs) if self._depthshade else
425
self._edgecolor3d)
426
ecs = mcolors.to_rgba_array(ecs, self._alpha)
427
self.set_edgecolors(ecs)
428
PatchCollection.set_offsets(self, vxyzis[0:2].T)
429
- if len(vxyzis) > 0:
430
- return min(vxyzis[2])
+ if len(vzs) > 0:
431
+ return min(vzs)
432
else:
433
return np.nan
434
0 commit comments