Revision: 8799
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8799&view=rev
Author:   leejjoon
Date:     2010-11-15 00:31:56 +0000 (Mon, 15 Nov 2010)

Log Message:
-----------
Collection.update_from copies attributes of scalarmappable

Modified Paths:
--------------
    branches/v1_0_maint/lib/matplotlib/collections.py

Modified: branches/v1_0_maint/lib/matplotlib/collections.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/collections.py   2010-11-15 00:31:16 UTC 
(rev 8798)
+++ branches/v1_0_maint/lib/matplotlib/collections.py   2010-11-15 00:31:56 UTC 
(rev 8799)
@@ -500,6 +500,12 @@
         self._linestyles = other._linestyles
         self._pickradius = other._pickradius
 
+        # update_from for scalarmappable
+        self._A = other._A
+        self.norm = other.norm
+        self.cmap = other.cmap
+        # self.update_dict = other.update_dict # do we need to copy this? -JJL
+
 # these are not available for the object inspector until after the
 # class is built so we define an initial set here for the init
 # function and they will be overridden after object defn


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to