mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-04 15:06:00 +08:00
Merge pull request #1025 from stefanv/compat/painttool_mpl_NoNorm
Use more recent NoNorm API
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user