Skip to content

Commit 44cc8e8

Browse files
committed
Add value and colormap options for streaming
1 parent 9adfd5c commit 44cc8e8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lightning/types/streaming.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ScatterStreaming(Base):
6464
_func = 'scatterstreaming'
6565

6666
@staticmethod
67-
def clean(x, y, color=None, label=None, size=None, xaxis=None, yaxis=None):
67+
def clean(x, y, color=None, label=None, value=None, colormap=None, size=None, xaxis=None, yaxis=None):
6868
"""
6969
Create a streaming scatter plot of x and y.
7070
@@ -85,6 +85,12 @@ def clean(x, y, color=None, label=None, size=None, xaxis=None, yaxis=None):
8585
label : array-like, optional, singleton or (n,)
8686
Single integer or array to set colors via groups
8787
88+
value : array-like, optional, singleton or (n,)
89+
Values to set node colors via a linear scale
90+
91+
colormap : string
92+
Specification of color map, only colorbrewer types supported
93+
8894
size : array-like, optional, singleton or (n,)
8995
Single size or array to set point sizes
9096
@@ -100,6 +106,8 @@ def clean(x, y, color=None, label=None, size=None, xaxis=None, yaxis=None):
100106

101107
outdict = add_property(outdict, color, 'color')
102108
outdict = add_property(outdict, label, 'label')
109+
outdict = add_property(outdict, value, 'value')
110+
outdict = add_property(outdict, colormap, 'colormap')
103111
outdict = add_property(outdict, size, 'size')
104112
outdict = add_property(outdict, xaxis, 'xaxis')
105113
outdict = add_property(outdict, yaxis, 'yaxis')

0 commit comments

Comments
 (0)