Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow PositionX/Y/XY to work with categorical axes
Browse files Browse the repository at this point in the history
philippjfr committed Jan 31, 2017

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 6a08b6b commit 93fe86e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions holoviews/streams.py
Original file line number Diff line number Diff line change
@@ -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)


0 comments on commit 93fe86e

Please sign in to comment.