Modify to allow plotting of multiple variables on the same canvas