Skip to content

Commit 0f7d41c

Browse files
committed
More review comments
1 parent b81c118 commit 0f7d41c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/mpl_toolkits/mplot3d/art3d.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -414,20 +414,21 @@ def do_3d_projection(self, renderer):
414414
# pad ones
415415
s = np.vstack(self._offsets3d, np.ones(self._offsets3d.shape[1]))
416416
vxyzis = proj3d.proj_transform_vec_clip(s, renderer.M)
417+
vzs = vxyzis[2]
417418

418-
fcs = (zalpha(self._facecolor3d, vxyzis[2]) if self._depthshade else
419+
fcs = (zalpha(self._facecolor3d, vzs) if self._depthshade else
419420
self._facecolor3d)
420421
fcs = mcolors.to_rgba_array(fcs, self._alpha)
421422
self.set_facecolors(fcs)
422423

423-
ecs = (zalpha(self._edgecolor3d, vxyzis[2]) if self._depthshade else
424+
ecs = (zalpha(self._edgecolor3d, vzs) if self._depthshade else
424425
self._edgecolor3d)
425426
ecs = mcolors.to_rgba_array(ecs, self._alpha)
426427
self.set_edgecolors(ecs)
427428
PatchCollection.set_offsets(self, vxyzis[0:2].T)
428429

429-
if len(vxyzis) > 0:
430-
return min(vxyzis[2])
430+
if len(vzs) > 0:
431+
return min(vzs)
431432
else:
432433
return np.nan
433434

0 commit comments

Comments
 (0)