Modified to allow plotting of multiple tracks on same canvas in different colours