Switch canvas and optimisation canvas initialisation to fix plotting.