Fixed the plot swithces function which had stopped working. Also using relative flow in order to eliminate the plotting of inactive at small demand levels