added incomplete trajectory plotting function