diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 2cc1646fb285..5a3270215ba1 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -6087,7 +6087,7 @@ def hist2d(self, x, y, bins=10, range=None, normed=False, weights=None, Other parameters ----------------- - kwargs : :meth:`pcolorfast` properties. + kwargs : :meth:`pcolormesh` properties. See also -------- @@ -6117,7 +6117,7 @@ def hist2d(self, x, y, bins=10, range=None, normed=False, weights=None, if cmax is not None: h[h > cmax] = None - pc = self.pcolorfast(xedges, yedges, h.T, **kwargs) + pc = self.pcolormesh(xedges, yedges, h.T, **kwargs) self.set_xlim(xedges[0], xedges[-1]) self.set_ylim(yedges[0], yedges[-1])