Use more recent NoNorm API

This commit is contained in:
Stefan van der Walt
2014-06-15 15:03:46 +02:00
parent 9fd8bb09a3
commit 9446f6b71a
+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)