Versions Compared

Key

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

...

On top of the minimum pressure try to add the maximum and average pressure to the graph plot.  Use a different colour to each curve and add a custom legend as well.

Hints:

  • first, just try to add the Graph Plotting definition to the Macro and in the end return both the Input Visualiser and the Graph Plotting as a list like this:
Code Block
return [vis,graph]

If you visualise the Macro now your Graph Plotting settings will be directly applied to the resulting curve.

  • next, compute the maximum of the pressure in the loop.  Store its values in another list and build an input visualiser out of it (e.g. call it vis_max). Define another Graph Plotting for it (e.g. call it graph_max). In the end now you need to return a longer list like this:

    Code Block
    return [vis,grpah,vis_max,graph_max]

Doing the whole task in Macro

...