From bfa4dba15485b4192f8bbe13345e9658c97ecf76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Picca=20Fr=C3=A9d=C3=A9ric-Emmanuel?= Date: Sat, 7 Oct 2017 07:59:01 +0200 Subject: New upstream version 0.6.0+dfsg --- silx/gui/plot/items/scatter.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'silx/gui/plot/items/scatter.py') diff --git a/silx/gui/plot/items/scatter.py b/silx/gui/plot/items/scatter.py index 3897dc1..98ed473 100644 --- a/silx/gui/plot/items/scatter.py +++ b/silx/gui/plot/items/scatter.py @@ -35,7 +35,7 @@ import logging import numpy from .core import Points, ColormapMixIn -from silx.gui.plot.Colors import applyColormapToData # TODO: cherry-pick commit or wait for PR merge + _logger = logging.getLogger(__name__) @@ -60,13 +60,7 @@ class Scatter(Points, ColormapMixIn): return None # No data to display, do not add renderer to backend cmap = self.getColormap() - rgbacolors = applyColormapToData(self._value, - cmap["name"], - cmap["normalization"], - cmap["autoscale"], - cmap["vmin"], - cmap["vmax"], - cmap.get("colors")) + rgbacolors = cmap.applyToData(self._value) return backend.addCurve(xFiltered, yFiltered, self.getLegend(), color=rgbacolors, -- cgit v1.2.3