Hello all,
I have one polyline shape file fragmented in random points. I need to create graphs for each segment by using the stack profile tool. How can I create these graphs automatically in format jpeg? It would be great if someone could tell me a python code for that one. 
I also have a raster elevation for my reference.
Best Regards,
--