From b729addb917eead18985e6591fd2e4b9ee03cc88 Mon Sep 17 00:00:00 2001
From: Philipp Rudiger
Date: Tue, 11 Apr 2017 00:04:04 +0100
Subject: [PATCH] Filter spectral cmaps from palette to avoid warning
---
holoviews/plotting/mpl/__init__.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/holoviews/plotting/mpl/__init__.py b/holoviews/plotting/mpl/__init__.py
index ece855f26f..4e3d9919ee 100644
--- a/holoviews/plotting/mpl/__init__.py
+++ b/holoviews/plotting/mpl/__init__.py
@@ -68,7 +68,10 @@ def get_color_cycle():
return mpl.rcParams['axes.color_cycle']
Cycle.default_cycles.update({'default_colors': get_color_cycle()})
-Palette.colormaps.update({cm: plt.get_cmap(cm) for cm in plt.cm.datad})
+
+# Filter spectral colormaps to avoid warning in mpl 2.0
+Palette.colormaps.update({cm: plt.get_cmap(cm) for cm in plt.cm.datad
+ if cm not in ['spectral', 'spectral_r']})
style_aliases = {'edgecolor': ['ec', 'ecolor'], 'facecolor': ['fc'],
'linewidth': ['lw'], 'edgecolors': ['ec', 'edgecolor'],