diff --git a/holoviews/element/path.py b/holoviews/element/path.py index 0dcac6bb78..a252d31d3c 100644 --- a/holoviews/element/path.py +++ b/holoviews/element/path.py @@ -56,7 +56,6 @@ def __init__(self, data, kdims=None, vdims=None, **params): data = [np.column_stack(path) for path in data] super(Path, self).__init__(data, kdims=kdims, vdims=vdims, **params) - def __setstate__(self, state): """ Ensures old-style unpickled Path types without an interface @@ -132,7 +131,9 @@ def __init__(self, data, kdims=None, vdims=None, **params): if params.get('level') is not None: vdims = vdims or [self._level_vdim] params['vdims'] = [] - super(Contours, self).__init__(data, **params) + else: + params['vdims'] = vdims + super(Contours, self).__init__(data, kdims=kdims, **params) if params.get('level') is not None: self.vdims = [d if isinstance(d, Dimension) else Dimension(d) for d in vdims]