Skip to content

Commit ba8c65d

Browse files
committed
Collection.update_from copies attributes of scalarmappable
svn path=/branches/v1_0_maint/; revision=8799
1 parent 6370a6a commit ba8c65d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/collections.py

+6
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,12 @@ def update_from(self, other):
500500
self._linestyles = other._linestyles
501501
self._pickradius = other._pickradius
502502

503+
# update_from for scalarmappable
504+
self._A = other._A
505+
self.norm = other.norm
506+
self.cmap = other.cmap
507+
# self.update_dict = other.update_dict # do we need to copy this? -JJL
508+
503509
# these are not available for the object inspector until after the
504510
# class is built so we define an initial set here for the init
505511
# function and they will be overridden after object defn

0 commit comments

Comments
 (0)