Skip to content

Commit 68d3dbd

Browse files
committed
MNT: only try to update the colormap if we have something to update
1 parent 3c8a92f commit 68d3dbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/mpl_toolkits/mplot3d/art3d.py

+3
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,9 @@ def do_3d_projection(self, renderer=None):
639639

640640

641641
def _update_scalarmappable(sm):
642+
if sm._A is None:
643+
return
644+
642645
copy_state = sm._update_dict['array']
643646
ret = sm.update_scalarmappable()
644647
if copy_state:

0 commit comments

Comments
 (0)