0 / 0
plotnode properties
Last updated: Jan 17, 2024
plotnode properties

Plot node iconThe Plot node shows the relationship between numeric fields. You can create a plot by using points (a scatterplot) or lines.

Example

stream = modeler.script.stream()
typenode = stream.findByID("id42KW3MSA94B")

node = stream.create("plot", "My node")
stream.link(typenode, node)

# "Plot" tab
node.setPropertyValue("three_D", True)
node.setPropertyValue("x_field", "BP")
node.setPropertyValue("y_field", "Cholesterol")
node.setPropertyValue("z_field", "Drug")
node.setPropertyValue("color_field", "Drug")
node.setPropertyValue("size_field", "Age")
node.setPropertyValue("shape_field", "")
node.setPropertyValue("panel_field", "Sex")
node.setPropertyValue("transp_field", "")

node.run([])
Table 1. plotnode properties
plotnode properties Data type Property description
x_field field Specifies a custom label for the x axis. Available only for labels.
y_field field Specifies a custom label for the y axis. Available only for labels.
three_D flag Specifies a custom label for the y axis. Available only for labels in 3-D graphs.
z_field field  
color_field field Overlay field.
size_field field  
shape_field field  
panel_field field Specifies a nominal or flag field for use in making a separate chart for each category. Charts are paneled together in one output window.
animation_field field Specifies a nominal or flag field for illustrating data value categories by creating a series of charts displayed in sequence using animation.
transp_field field Specifies a field for illustrating data value categories by using a different level of transparency for each category. Not available for line plots.
overlay_type None Smoother Function Specifies whether an overlay function or LOESS smoother is displayed.
overlay_expression string Specifies the expression used when overlay_type is set to Function.
style Point Line  
point_type
Rectangle
Dot
Triangle
Hexagon
Plus
Pentagon
Star
BowTie
HorizontalDash
VerticalDash
IronCross
Factory
House
Cathedral
OnionDome
ConcaveTriangle
OblateGlobe
CatEye
FourSidedPillow
RoundRectangle
Fan
 
x_mode Sort Overlay AsRead  
x_range_mode Automatic UserDefined  
x_range_min number  
x_range_max number  
y_range_mode Automatic UserDefined  
y_range_min number  
y_range_max number  
z_range_mode Automatic UserDefined  
z_range_min number  
z_range_max number  
jitter flag  
records_limit number  
if_over_limit PlotBins PlotSample PlotAll  
x_label_auto flag  
x_label string  
y_label_auto flag  
y_label string  
z_label_auto flag  
z_label string  
use_grid flag  
graph_background color Standard graph colors are described at the beginning of this section.
page_background color Standard graph colors are described at the beginning of this section.
use_overlay_expr flag Deprecated in favor of overlay_type.
Generative AI search and answer
These answers are generated by a large language model in watsonx.ai based on content from the product documentation. Learn more