either the whole x\y axis drawing function is swapped somewhere, or the x axis counting starts at the wrong end
either the whole x\y axis drawing function is swapped somewhere, or the x axis counting starts at the wrong end