Updated ploting functionality. Multi-line plots will now be dealt with reasonably.