Skip to content

Commit d23f721

Browse files
committed
Merge pull request #630 from jenshnielsen/colorbar
Plot Colorbar in axes_grid1 with pcolormesh
2 parents bdc427a + a62545d commit d23f721

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/mpl_toolkits/axes_grid1/colorbar.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -544,9 +544,8 @@ def _add_solids(self, X, Y, C):
544544
del self.solids
545545
del self.dividers
546546

547-
col = self.ax.pcolor(*args, **kw)
548-
col.set_antialiased(False) # This is to suppress artifacts. We
549-
# may use pcolormesh instead.
547+
col = self.ax.pcolormesh(*args, **kw)
548+
550549
self.solids = col
551550
if self.drawedges:
552551
self.dividers = collections.LineCollection(self._edges(X,Y),

0 commit comments

Comments
 (0)