Changed plots to use pyplot, non-interactive backend