Fix points order when graph is not rotated in Y axis