diff --git a/holoviews/core/options.py b/holoviews/core/options.py index 13108373fe..b1f05f70f2 100644 --- a/holoviews/core/options.py +++ b/holoviews/core/options.py @@ -325,7 +325,7 @@ def __getitem__(self, num): def _get_values(self): if self.values: return self.values elif self.key: - return self.default_cycles[self.key] + return list(self.default_cycles[self.key]) else: raise ValueError("Supply either a key or explicit values.") diff --git a/holoviews/plotting/util.py b/holoviews/plotting/util.py index 945353d097..c0c83a1e80 100644 --- a/holoviews/plotting/util.py +++ b/holoviews/plotting/util.py @@ -620,7 +620,7 @@ def bokeh_palette_to_palette(cmap, ncolors=None, categorical=False): palette = palette(ncolors) if reverse: palette = palette[::-1] - return resample_palette(palette, ncolors, categorical, cmap_categorical) + return list(resample_palette(palette, ncolors, categorical, cmap_categorical)) def linear_gradient(start_hex, finish_hex, n=10): @@ -898,8 +898,6 @@ def process_cmap(cmap, ncolors=None, provider=None, categorical=False): else: raise ValueError("Supplied cmap %s not found among %s colormaps." % (cmap,providers_checked)) - if isinstance(palette, tuple): - palette = list(palette) else: try: # Try processing as matplotlib colormap