Thanks for the tip @joeallberry and thanks @HS_Kim for fixing up the Grasshopper definition for me!! I also like how you simplified the definition by projecting the points onto the curve instead of the complicated way I had done it.
I’ve added a legend to the definition:
Here’s the revised file for anyone interested:
171219_PathGradient_Assessment.gh (59.8 KB)
Thanks again,
Matthew