...
If you visualise the Macro now your Graph Plotting settings will be directly applied to the resulting curve.
...
add a Legend with disjoint mode. Carefully Use user text only and 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.
...