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 your Graph Plotting definition to the Macro and in .  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 and store its values in another list. Build an input visualiser out of it (e.g. call it vis_max) and define . Add a Graph Plotting for it (e.g. call it graph_max) using a different colour. In the end you need to return a longer list like this:
Code Block
return [vis,graph,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.

...