Flipped ordinate/abscissa
Fix warnings