swapes x and y for solution plot