直方图节点属性

直方图节点图标直方图节点显示数值字段的数值出现情况。 它通常用于在操作和模型构建之前探索数据。 与“分布”节点类似,“直方图”节点也经常揭示数据的不平衡。

示例

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)
表 1。 histogramnode 属性
histogramnode properties 数据类型 属性描述
field 字段  
color_field 字段  
panel_field 字段  
animation_field 字段  
range_mode Automatic UserDefined  
range_min  
range_max  
bins ByNumber ByWidth  
num_bins  
bin_width  
normalize 标志  
separate_bands 标志  
x_label_auto 标志  
x_label 字符串  
y_label_auto 标志  
y_label 字符串  
use_grid 标志  
graph_background 颜色 标准图表颜色在本节开头进行了说明。
page_background 颜色 标准图表颜色在本节开头进行了说明。
normal_curve 标志 指示是否应在输出中显示正态分布曲线。