Last updated: Feb 11, 2025
The Collection node shows the distribution of values for one
numeric field relative to the values of another. (It creates graphs that are similar to histograms.)
It's useful for illustrating a variable or field whose values change over time. Using 3-D graphing,
you can also include a symbolic axis displaying distributions by category.
Example
stream = modeler.script.stream()
typenode = stream.findByID("id42KW3MSA94B")
node = stream.create("collection", "My node")
stream.link(typenode, node)
# "Plot" tab
node.setPropertyValue("three_D", True)
node.setPropertyValue("collect_field", "Drug")
node.setPropertyValue("over_field", "Age")
node.setPropertyValue("by_field", "BP")
node.setPropertyValue("operation", "Sum")
node.setPropertyValue("color_field", "Drug")
node.setPropertyValue("panel_field", "Sex")
# "Options" tab
node.setPropertyValue("range_mode", "Automatic")
node.setPropertyValue("range_min", 1)
node.setPropertyValue("range_max", 100)
node.setPropertyValue("bins", "ByNumber")
node.setPropertyValue("num_bins", 10)
node.setPropertyValue("bin_width", 5)
properties |
Data type | Property description |
---|---|---|
|
field | |
|
flag | |
|
string | |
|
field | |
|
flag | |
|
string | |
|
flag | |
|
field | |
|
flag | |
|
string | |
|
|
|
|
string | |
|
string | |
|
string | |
|
|
|
|
number | |
|
number | |
|
|
|
|
number | |
|
number | |
|
flag | |
|
color | Standard graph colors are described at the beginning of this section. |
|
color | Standard graph colors are described at the beginning of this section. |
Was the topic helpful?
0/1000