stop plot from showing at end, just save it instead