@@ -19,7 +19,7 @@ class Scatter(Base):
19
19
_name = 'scatter'
20
20
21
21
@staticmethod
22
- def clean (x , y , color = None , label = None , size = None , alpha = None , xaxis = None , yaxis = None ):
22
+ def clean (x , y , color = None , label = None , value = None , colormap = None , size = None , alpha = None , xaxis = None , yaxis = None ):
23
23
"""
24
24
Plot two-dimensional data as points.
25
25
@@ -36,6 +36,12 @@ def clean(x, y, color=None, label=None, size=None, alpha=None, xaxis=None, yaxis
36
36
label : array-like, optional, singleton or (n,)
37
37
Single integer or array to set colors via groups
38
38
39
+ value : array-like, optional, singleton or (n,)
40
+ Values to set node colors via a linear scale
41
+
42
+ colormap : string
43
+ Specification of color map, only colorbrewer types supported
44
+
39
45
size : array-like, optional, singleton or (n,)
40
46
Single size or array to set point sizes
41
47
@@ -54,6 +60,8 @@ def clean(x, y, color=None, label=None, size=None, alpha=None, xaxis=None, yaxis
54
60
55
61
outdict = add_property (outdict , color , 'color' )
56
62
outdict = add_property (outdict , label , 'label' )
63
+ outdict = add_property (outdict , value , 'value' )
64
+ outdict = add_property (outdict , colormap , 'colormap' )
57
65
outdict = add_property (outdict , size , 'size' )
58
66
outdict = add_property (outdict , alpha , 'alpha' )
59
67
outdict = add_property (outdict , xaxis , 'xaxis' )
@@ -113,8 +121,8 @@ def clean(conn, label=None):
113
121
either 2 elements per link (source, target),
114
122
or 3 elements (source, target, value).
115
123
116
- colormap : string
117
- Specification of color map, only colorbrewer types supported
124
+ label : array-like, optional, singleton or (n,)
125
+ Single integer or array to set colors via groups
118
126
"""
119
127
links = parse_links (conn )
120
128
nodes = parse_nodes (conn )
@@ -166,9 +174,6 @@ def clean(series, index=None, color=None, label=None, size=None, xaxis=None, yax
166
174
size : array-like, optional, singleton or (n,)
167
175
Single size or array to set line thickness
168
176
169
- size : array-like, optional, singleton or (n,)
170
- Single size or array to set line thickness
171
-
172
177
xaxis : str, optional, default = None
173
178
Label for x-axis
174
179
@@ -235,7 +240,7 @@ class Force(Base):
235
240
_func = 'force'
236
241
237
242
@staticmethod
238
- def clean (conn , color = None , label = None , size = None ):
243
+ def clean (conn , color = None , label = None , value = None , colormap = None , size = None ):
239
244
"""
240
245
Create a force-directed network from a connectivity matrix.
241
246
@@ -255,6 +260,12 @@ def clean(conn, color=None, label=None, size=None):
255
260
label : array-like, optional, singleton or (n,)
256
261
Single integer or array to set node colors via group labels
257
262
263
+ value : array-like, optional, singleton or (n,)
264
+ Values to set node colors via a linear scale
265
+
266
+ colormap : string
267
+ Specification of color map, only colorbrewer types supported
268
+
258
269
size : array-like, optional, singleton or (n,)
259
270
Single size or array to set node sizes
260
271
"""
@@ -266,6 +277,8 @@ def clean(conn, color=None, label=None, size=None):
266
277
267
278
outdict = add_property (outdict , color , 'color' )
268
279
outdict = add_property (outdict , label , 'label' )
280
+ outdict = add_property (outdict , value , 'value' )
281
+ outdict = add_property (outdict , colormap , 'colormap' )
269
282
outdict = add_property (outdict , size , 'size' )
270
283
271
284
return outdict
@@ -277,7 +290,7 @@ class Graph(Base):
277
290
_func = 'graph'
278
291
279
292
@staticmethod
280
- def clean (x , y , conn , color = None , label = None , size = None , imagedata = None ):
293
+ def clean (x , y , conn , color = None , label = None , value = None , colormap = None , size = None , imagedata = None ):
281
294
"""
282
295
Create a node-link graph from spatial points and their connectivity matrix.
283
296
@@ -300,6 +313,12 @@ def clean(x, y, conn, color=None, label=None, size=None, imagedata=None):
300
313
label : array-like, optional, singleton or (n,)
301
314
Single integer or array to set node colors via group labels
302
315
316
+ value : array-like, optional, singleton or (n,)
317
+ Values to set node colors via a linear scale
318
+
319
+ colormap : string
320
+ Specification of color map, only colorbrewer types supported
321
+
303
322
size : array-like, optional, singleton or (n,)
304
323
Single size or array to set node sizes
305
324
"""
@@ -311,6 +330,8 @@ def clean(x, y, conn, color=None, label=None, size=None, imagedata=None):
311
330
312
331
outdict = add_property (outdict , color , 'color' )
313
332
outdict = add_property (outdict , label , 'label' )
333
+ outdict = add_property (outdict , value , 'value' )
334
+ outdict = add_property (outdict , colormap , 'colormap' )
314
335
outdict = add_property (outdict , size , 'size' )
315
336
316
337
if imagedata is not None :
@@ -327,7 +348,7 @@ class GraphBundled(Base):
327
348
_func = 'graphbundled'
328
349
329
350
@staticmethod
330
- def clean (x , y , conn , color = None , label = None , size = None , imagedata = None ):
351
+ def clean (x , y , conn , color = None , label = None , value = None , colormap = None , size = None , imagedata = None ):
331
352
"""
332
353
Create a node-link graph with bundled edges.
333
354
@@ -350,6 +371,12 @@ def clean(x, y, conn, color=None, label=None, size=None, imagedata=None):
350
371
label : array-like, optional, singleton or (n,)
351
372
Single integer or array to set node colors via group labels
352
373
374
+ value : array-like, optional, singleton or (n,)
375
+ Values to set node colors via a linear scale
376
+
377
+ colormap : string
378
+ Specification of color map, only colorbrewer types supported
379
+
353
380
size : array-like, optional, singleton or (n,)
354
381
Single size or array to set node sizes
355
382
"""
@@ -360,6 +387,8 @@ def clean(x, y, conn, color=None, label=None, size=None, imagedata=None):
360
387
361
388
outdict = add_property (outdict , color , 'color' )
362
389
outdict = add_property (outdict , label , 'label' )
390
+ outdict = add_property (outdict , value , 'value' )
391
+ outdict = add_property (outdict , colormap , 'colormap' )
363
392
outdict = add_property (outdict , size , 'size' )
364
393
365
394
if imagedata is not None :
0 commit comments