Revision: 8490
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8490&view=rev
Author:   efiring
Date:     2010-07-03 01:20:53 +0000 (Sat, 03 Jul 2010)

Log Message:
-----------
colorbar: use pcolormesh instead of pcolor, to reduce artifacts

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

Modified: trunk/matplotlib/lib/matplotlib/colorbar.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/colorbar.py 2010-07-02 23:03:44 UTC (rev 
8489)
+++ trunk/matplotlib/lib/matplotlib/colorbar.py 2010-07-03 01:20:53 UTC (rev 
8490)
@@ -397,19 +397,18 @@
         Draw the colors using :meth:`~matplotlib.axes.Axes.pcolor`;
         optionally add separators.
         '''
-        ## Change to pcolorfast after fixing bugs in some backends...
         if self.orientation == 'vertical':
             args = (X, Y, C)
         else:
             args = (np.transpose(Y), np.transpose(X), np.transpose(C))
         kw = {'cmap':self.cmap, 'norm':self.norm,
-                    'shading':'flat', 'alpha':self.alpha}
+                    'alpha':self.alpha,}
         # Save, set, and restore hold state to keep pcolor from
         # clearing the axes. Ordinarily this will not be needed,
         # since the axes object should already have hold set.
         _hold = self.ax.ishold()
         self.ax.hold(True)
-        col = self.ax.pcolor(*args, **kw)
+        col = self.ax.pcolormesh(*args, **kw)
         self.ax.hold(_hold)
         #self.add_observer(col) # We should observe, not be observed...
 


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 Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to