Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
HTML |
---|
<script type="text/javascript">
AJS.toInit(function() {
// unbind directly-embedded images
AJS.$("img.confluence-embedded-image").unbind("click.fb");
});
</script> |
scrollbar |
---|
Create a new region for this section. We will now compare the results obtained in the current model with the measured data that we imported before, in order to check how close the model is to those measurements. We will create a chart showing both time series using the methods included in the ChartFunctions library. For the imported data, we will create a series of points (CreatePointSeries Image Added ) and for the model results a line (CreateLineSeries
Image Added ).
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.scrollbar
Code Block | ||||
---|---|---|---|---|
| ||||
from Libraries.ChartFunctions import * # region Import libraries
dataSeries = CreatePointSeries(measuredTimeSeries)
lineResults = CreateLineSeries(waterlevelResults) |
Then we continue by creating the chart with the two chart series and opening a view for itNext, we will create a chart containing both series and will open the corresponding view.
Code Block | ||||
---|---|---|---|---|
| ||||
chart = CreateChart([dataSeries, lineResults]) chart.Name = "Water level at center Zwolle channels" view = OpenView(chart) |
Note: The icon Image Added indicates functions that you might find interesting to see how they have been built. You can do this by opening the corresponding library (another normal script python file on its own) in the toolbox and checking the code which defines the function or method you are interested in.
scrollbar |
---|
scrollbar