From 98efedc1092d99781d11de80a3d762d802a2d3c5 Mon Sep 17 00:00:00 2001 From: "James A. Bednar" Date: Thu, 2 Nov 2017 17:18:42 -0500 Subject: [PATCH 1/2] Changed datashader default colormap to fit HV defaults --- holoviews/operation/datashader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/holoviews/operation/datashader.py b/holoviews/operation/datashader.py index f3392faca6..f7715077d3 100644 --- a/holoviews/operation/datashader.py +++ b/holoviews/operation/datashader.py @@ -497,7 +497,7 @@ class shade(Operation): Iterable or a Callable. """ - cmap = param.ClassSelector(default=fire, class_=(Iterable, Callable, dict), doc=""" + cmap = param.ClassSelector(default=["deepskyblue","black"], class_=(Iterable, Callable, dict), doc=""" Iterable or callable which returns colors as hex colors, to be used for the colormap of single-layer datashader output. Callable type must allow mapping colors between 0 and 1.""") From 1722fa9a3334ca9f3ef4094607784850d6d03d0e Mon Sep 17 00:00:00 2001 From: "James A. Bednar" Date: Thu, 2 Nov 2017 18:41:47 -0500 Subject: [PATCH 2/2] Restored original default datashader colormap of None --- holoviews/operation/datashader.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/holoviews/operation/datashader.py b/holoviews/operation/datashader.py index f7715077d3..7a72e17e14 100644 --- a/holoviews/operation/datashader.py +++ b/holoviews/operation/datashader.py @@ -497,10 +497,13 @@ class shade(Operation): Iterable or a Callable. """ - cmap = param.ClassSelector(default=["deepskyblue","black"], class_=(Iterable, Callable, dict), doc=""" - Iterable or callable which returns colors as hex colors, to - be used for the colormap of single-layer datashader output. - Callable type must allow mapping colors between 0 and 1.""") + cmap = param.ClassSelector(class_=(Iterable, Callable, dict), doc=""" + Iterable or callable which returns colors as hex colors + or web color names (as defined by datashader), to be used + for the colormap of single-layer datashader output. + Callable type must allow mapping colors between 0 and 1. + The default value of None reverts to Datashader's default + colormap.""") color_key = param.ClassSelector(class_=(Iterable, Callable, dict), doc=""" Iterable or callable which returns colors as hex colors, to