From 93fe86ee15f90d05817e543d6995937a2f6f9d6d Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Tue, 31 Jan 2017 22:55:10 +0000 Subject: [PATCH] Allow PositionX/Y/XY to work with categorical axes --- holoviews/streams.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/holoviews/streams.py b/holoviews/streams.py index fe8399efd2..567644c2f7 100644 --- a/holoviews/streams.py +++ b/holoviews/streams.py @@ -199,7 +199,7 @@ class PositionX(Stream): position of the mouse/trackpad cursor. """ - x = param.Number(default=0, doc=""" + x = param.ClassSelector(class_=(int, float, util.basestring), default=0, doc=""" Position along the x-axis in data coordinates""", constant=True) @@ -211,7 +211,7 @@ class PositionY(Stream): position of the mouse/trackpad cursor. """ - y = param.Number(default=0, doc=""" + y = param.ClassSelector(class_=(int, float, util.basestring), default=0, doc=""" Position along the y-axis in data coordinates""", constant=True) @@ -223,10 +223,10 @@ class PositionXY(Stream): position of the mouse/trackpad cursor. """ - x = param.Number(default=0, doc=""" + x = param.ClassSelector(class_=(int, float, util.basestring), default=0, doc=""" Position along the x-axis in data coordinates""", constant=True) - y = param.Number(default=0, doc=""" + y = param.ClassSelector(class_=(int, float, util.basestring), default=0, doc=""" Position along the y-axis in data coordinates""", constant=True)