uiform graph - part-cw/lambdanative GitHub Wiki
(graph . args)
The uiform graph element displays a line trace of data.
Parameter | Default | Description |
---|---|---|
id | #f | Variable where graph data is stored |
location | 'db | Graph variable storage location |
height | 100 | Graph height |
color | White | Line color |
linewidth | 2. | Line width |
stride | 3 | Step size between two data points |
ymin | (if (null? ydata) 0. (apply min ydata)) | Minimum y value |
ymax | (if (null? ydata) 1. (apply max ydata)) | Maximum y value |
ypad | 0. | Padding in y-direction |
xmin | x | Starting position in x-direction |
xmax | (+ x w) | End position in x-direction |
trendlabel | #f | Label of trend (top left corner of graph) |
trend | #f | Label on bottom of trend |
trendcolor | #f | Color of trendlabel and trend |
Example
Example 1: A complete page definition plotting data from a pleth variable.
(sleep-recording
"Recording"
#f
#f
(spacer)
(button text "Sensor Application Training" action sleep-training)
(spacer)
(graph height 200 id pleth location ui color ,Yellow linewidth 4)
(spacer height 10)
)