Merge pull request #339 from ndawe/master

fix failing legend test by creating an invisible canvas