Revision: 4376
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4376&view=rev
Author:   efiring
Date:     2007-11-18 11:02:55 -0800 (Sun, 18 Nov 2007)

Log Message:
-----------
Use new update_dict from ScalarMappable in QuadMesh

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/collections.py

Modified: trunk/matplotlib/lib/matplotlib/collections.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/collections.py      2007-11-18 19:01:39 UTC 
(rev 4375)
+++ trunk/matplotlib/lib/matplotlib/collections.py      2007-11-18 19:02:55 UTC 
(rev 4376)
@@ -322,15 +322,14 @@
         return self._coordinates;
 
     def draw(self, renderer):
-        # does not call update_scalarmappable, need to update it
-        # when creating/changing              ****** Why not?  speed?
         if not self.get_visible(): return
         transform = self.get_transform()
         transoffset = self.get_transoffset()
         transform.freeze()
         transoffset.freeze()
         #print 'QuadMesh draw'
-        self.update_scalarmappable()  #######################
+        if self.check_update('array'):
+            self.update_scalarmappable()
 
         renderer.draw_quad_mesh( self._meshWidth, self._meshHeight,
             self._facecolors, self._coordinates[:,0],
@@ -797,7 +796,7 @@
 
         self._lw = self._get_value(lw)
     set_linewidths = set_lw = set_linewidth
-        
+
     def set_linestyle(self, ls):
         """
         Set the linestyles(s) for the collection.


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to