Pixpipejs

This does the following :

Draw a segment on the image and look at the plot at the bottom of the page!