cleaned up abscissa/ordinate calculations