Glue has a position-velocity diagram extraction tool that allows arbitrary paths to be specified:
A beautiful demo shows this in action (movie).