Versions Compared

Key

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

...

Plot the Input Visualiser variable to get your time series plot. Use the Macro code for a Graph Plotting icon to connect the points with blue lines. If you have time at the end, you can customise the plot further.

Now duplicate the bulk of the code in order to additionally plot the time series for the data stored in t2m_analysis.grib, with the points connected by red lines. The plotting part can be done either with an additional plot() command, or else by adding the new Input Visualiser and Graph Plotting code to the end of the existing plot() command.

Info

In Organising Macros we will see how to put similar code into functions in order to reduce duplication of code.

 

Extra Work

Customise the time series plot:

  • put some extra space around the data points - add a day to each end of the x axis using a custom Cartesian View
  • add a useful legend indicating that the blue line is the 24h forecast data and the red line is the analysis data