From 5a3c3dfd04189644b7fc0be38868107f87f9e3c3 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Tue, 26 Mar 2019 18:20:36 +0000 Subject: [PATCH] Ensure Dimension clone copies all parameters (#3580) --- holoviews/core/dimension.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/holoviews/core/dimension.py b/holoviews/core/dimension.py index d323a7f98c..f030be5407 100644 --- a/holoviews/core/dimension.py +++ b/holoviews/core/dimension.py @@ -325,7 +325,7 @@ def clone(self, spec=None, **overrides): Returns: Cloned Dimension object """ - settings = dict(self.get_param_values(onlychanged=True), **overrides) + settings = dict(self.get_param_values(), **overrides) if spec is None: spec = (self.name, overrides.get('label', self.label)) @@ -337,7 +337,6 @@ def clone(self, spec=None, **overrides): 'Using label as supplied by keyword ({!r}), ignoring ' 'tuple value {!r}'.format(overrides['label'], spec[1])) spec = (spec[0], overrides['label']) - return self.__class__(spec, **{k:v for k,v in settings.items() if k not in ['name', 'label']})