Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
scrollbar |
---|
Using the timeseries that we created in the previous step (measuredTimeSeries and waterlevelResults) we want to create a chart showing both timeseries. To do this we first need to import the ChartFunctions library and create chart series for the timeseries. In this case a point series for the measurements and a line series for the calculated waterlevel.
Code Block | ||||
---|---|---|---|---|
| ||||
from Libraries.ChartFunctions import *
dataSeries = CreatePointSeries(measuredTimeSeries)
lineResults = CreateLineSeries(waterlevelResults) |
Then we continue by creating the chart with the two chart series and opening a view for it.
Code Block | ||||
---|---|---|---|---|
| ||||
chart = CreateChart([dataSeries, lineResults])
chart.Name = "Water level at center Zwolle channels"
view = OpenView(chart) |
scrollbar |
---|