Skip to content

Commit

Permalink
Use new update_dict from ScalarMappable in QuadMesh
Browse files Browse the repository at this point in the history
svn path=/trunk/matplotlib/; revision=4376
  • Loading branch information
efiring committed Nov 18, 2007
1 parent f27ef91 commit 0237456
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/matplotlib/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,15 +322,14 @@ def get_verts(self, dataTrans=None):
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],
Expand Down Expand Up @@ -797,7 +796,7 @@ def set_linewidth(self, lw):

self._lw = self._get_value(lw)
set_linewidths = set_lw = set_linewidth

def set_linestyle(self, ls):
"""
Set the linestyles(s) for the collection.
Expand Down

0 comments on commit 0237456

Please sign in to comment.