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

Commitc9c0d38

Browse files
committed
FIX: make sure scalarmappable updates are handleded correctly in 3D
1 parent10b065f commitc9c0d38

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ def set_linewidth(self, lw):
592592

593593
@cbook._delete_parameter('3.4','renderer')
594594
defdo_3d_projection(self,renderer=None):
595+
self.update_scalarmappable()
595596
xs,ys,zs=self._offsets3d
596597
vxs,vys,vzs,vis=proj3d.proj_transform_clip(xs,ys,zs,
597598
self.axes.M)
@@ -634,6 +635,16 @@ def do_3d_projection(self, renderer=None):
634635

635636
returnnp.min(vzs)ifvzs.sizeelsenp.nan
636637

638+
defupdate_scalarmappable(self):
639+
copy_state=self._update_dict['array']
640+
ret=super().update_scalarmappable()
641+
ifcopy_state:
642+
ifself._is_filled:
643+
self._facecolor3d=self._facecolors
644+
elifself._is_stroked:
645+
self._edgecolor3d=self._edgecolors
646+
returnret
647+
637648

638649
defpatch_collection_2d_to_3d(col,zs=0,zdir='z',depthshade=True):
639650
"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp