Fixing whitespace issue with canvas plot