latline plot debugged