From 0a1b22a65760c723326268760d4c05da5f05fdeb Mon Sep 17 00:00:00 2001
From: Philipp Rudiger
Date: Sat, 6 Feb 2016 18:02:03 +0000
Subject: [PATCH] Reverted setting facecolors instead of c in mpl scatter plots
---
holoviews/plotting/mpl/chart.py | 2 +-
holoviews/plotting/mpl/chart3d.py | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/holoviews/plotting/mpl/chart.py b/holoviews/plotting/mpl/chart.py
index 3aca4477e6..03edf460d7 100644
--- a/holoviews/plotting/mpl/chart.py
+++ b/holoviews/plotting/mpl/chart.py
@@ -593,7 +593,7 @@ def initialize_plot(self, ranges=None):
if cdim:
cs = points.dimension_values(self.color_index)
color = style.pop('color', None)
- style['facecolors'] = cs
+ style['c'] = cs
style['clim'] = ranges.get(cdim.name)
if points.get_dimension(self.size_index):
diff --git a/holoviews/plotting/mpl/chart3d.py b/holoviews/plotting/mpl/chart3d.py
index 138ff5c5cb..bd58dac905 100644
--- a/holoviews/plotting/mpl/chart3d.py
+++ b/holoviews/plotting/mpl/chart3d.py
@@ -132,10 +132,10 @@ def update_handles(self, axis, points, key, ranges=None):
cdim = points.get_dimension(self.color_index)
if cdim:
cs = points.dimension_values(self.color_index)
- style.pop('color', None)
- style['facecolors'] = cs
+ style['c'] = cs
if 'clim' not in style:
- style['clim'] = ranges[cdim.name]
+ clims = ranges[cdim.name]
+ style.update(vmin=clims[0], vmax=clims[1])
if points.get_dimension(self.size_index):
style['s'] = self._compute_size(points, style)