Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

First of all, add a title to the series corresponding to the results of the model with the initial settings.  In all the following code, feel free to use the styling options (e.g. colors) you like the most.

Code Block
languagepy
titleAdd title to an existing series
lineResults.Title = "Model results"

...

Code Block
languagepy
titleCustomize chart as a whole
chart.Title = "Comparison measurements vs results"
chart.TitleVisible = True
chart.BottomAxis.Title = "Time"
chart.LeftAxis.Title = "Waterlevel [m]"
chart.LeftAxis.Automatic = False
chart.LeftAxis.Maximum = 2
chart.LeftAxis.Minimum = 0
chart.Legend.Visible = True
chart.Legend.Alignment = LegendAlignment.Bottom

 

 

Using the autocomplete function of the scripting editor, change some additional elements of the chart (use auto-complete to check all possible options) until you find that the plot looks the way you want.