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 and store its values in another list and build . Build an input visualiser out of it (e.g. call it vis_max) . Define another and define a Graph Plotting for it (e.g. call it graph_max) using a different colour. In the end now you need to return a longer list like this:

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

    the average pressure curve can be derived in a very similar manner

  • add a Legend with disjoint mode. Carefully set the legend_user_lines to provide a textual description to each curve in the legend. Add your legend to back of the list you return from the macro.

Doing the whole task in Macro

Try to write a single Macro that is doing all the tasks in one go and directly produces the composite plot with the map and graph in the end.