Simplified segments plottings script