There is nothing like this currently in Octave but it had been a while since I wanted to give it a try. I attached a draft function that should do what you want. It only works when there is a single axes in the figure and only points to line objects: