|
The Multiplot node creates a plot that displays multiple Y fields over a single
X field. The Y fields are plotted as colored lines; each is equivalent to a Plot node
with Style set to Line and X Mode set to Sort.
Multiplots are useful when you want to explore the fluctuation of several variables over time.
|
Example
node = stream.create("multiplot", "My node")
# "Plot" tab
node.setPropertyValue("x_field", "Age")
node.setPropertyValue("y_fields", ["Drug", "BP"])
node.setPropertyValue("panel_field", "Sex")
# "Overlay" section
node.setPropertyValue("animation_field", "")
node.setPropertyValue("tooltip", "test")
node.setPropertyValue("normalize", True)
node.setPropertyValue("use_overlay_expr", False)
node.setPropertyValue("overlay_expression", "test")
node.setPropertyValue("records_limit", 500)
node.setPropertyValue("if_over_limit", "PlotSample")
Table 1. multiplotnode properties
multiplotnode properties |
Data type |
Property description |
x_field
|
field
|
|
y_fields
|
list |
|
panel_field
|
field
|
|
animation_field
|
field
|
|
normalize
|
flag
|
|
use_overlay_expr
|
flag
|
|
overlay_expression
|
string
|
|
records_limit
|
number
|
|
if_over_limit
|
PlotBins
PlotSample
PlotAll
|
|
x_label_auto
|
flag
|
|
x_label
|
string
|
|
y_label_auto
|
flag
|
|
y_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. |