histogramnode properties
Last updated: Feb 12, 2025
The Histogram node shows the occurrence of values for numeric
fields. It's often used to explore the data before manipulations and model building. Similar to the
Distribution node, the Histogram node frequently reveals imbalances in the data.
ExampleCopy link to section
Copy link to section
stream = modeler.script.stream()
typenode = stream.findByID("id42KW3MSA94B")
node = stream.create("histogram", "My node")
stream.link(typenode, node)
# "Plot" tab
node.setPropertyValue("field", "Drug")
node.setPropertyValue("color_field", "Drug")
node.setPropertyValue("panel_field", "Sex")
# "Options" tab
node.setPropertyValue("range_mode", "UserDefined")
node.setPropertyValue("range_min", 1.0)
node.setPropertyValue("range_max", 100.0)
node.setPropertyValue("num_bins", 10)
node.setPropertyValue("normalize", True)
node.setPropertyValue("separate_bands", False)
Copy to clipboard Show more
properties |
Data type | Property description |
---|---|---|
|
field | |
|
field | |
|
field | |
|
field | |
|
|
|
|
number | |
|
number | |
|
|
|
|
number | |
|
number | |
|
flag | |
|
flag | |
|
flag | |
|
string | |
|
flag | |
|
string | |
|
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. |
|
flag | Indicates whether the normal distribution curve should be shown on the output. |
Was the topic helpful?
0/1000