This does the following :
- opening a distant image file with AJAX request, using
pixpipe.UrlImageReader
- displaying it in a canvas using
pixpipe.CanvasImageWriter
- Sampling along a segment
Draw a segment on the image and look at the plot at the bottom of the page!