About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
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