fix plotting in the canvas version, y-axis was flipped