Outputs trajectory to matplotlib graph embedded in Tk