Added simple unlinked X,Y and XY streams
@@ -279,6 +279,36 @@ class Counter(Stream):
return {'counter': self.counter + 1}
+class X(Stream):
+ """
+ Simple numeric stream representing a position along the x-axis.
+ """
+
+ x = param.Number(default=0, constant=True, doc="""
+ Numeric position along the x-axis.""")
+
+
+class Y(Stream):
+ """
+ Simple numeric stream representing a position along the y-axis.
+ """
+
+ y = param.Number(default=0, constant=True, doc="""
+ Numeric position along the y-axis.""")
+
+
+class XY(Stream):
+ """
+ Simple numeric stream representing a position along the x- and y-axes.
+ """
+
+ x = param.Number(default=0, constant=True, doc="""
+ Numeric position along the x-axis.""")
+
+ y = param.Number(default=0, constant=True, doc="""
+ Numeric position along the y-axis.""")
+
+
class LinkedStream(Stream):
"""
A LinkedStream indicates is automatically linked to plot interactions
