Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit822f4f7

Browse files
committed
More review comments
1 parentb81c118 commit822f4f7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 5 additions & 4 deletions
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])ifself._depthshadeelse
419+
fcs= (zalpha(self._facecolor3d,vzs)ifself._depthshadeelse
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])ifself._depthshadeelse
424+
ecs= (zalpha(self._edgecolor3d,vzs)ifself._depthshadeelse
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-
iflen(vxyzis)>0:
430-
returnmin(vxyzis[2])
430+
ifvzs.size>0:
431+
returnmin(vzs)
431432
else:
432433
returnnp.nan
433434

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp