adding try around plotting call to deal with matlab errors