Merge pull request #1025 from stefanv/compat/painttool_mpl_NoNorm

Use more recent NoNorm API
This commit is contained in:
Johannes Schönberger
2014-06-15 09:36:10 -04:00
+1 -1
View File
@@ -102,7 +102,7 @@ class PaintTool(CanvasToolBase):
self._overlay_plot = None
elif self._overlay_plot is None:
props = dict(cmap=self.cmap, alpha=self.alpha,
norm=mcolors.no_norm(), animated=True)
norm=mcolors.NoNorm(), animated=True)
self._overlay_plot = self.ax.imshow(image, **props)
else:
self._overlay_plot.set_data(image)