Added a way to make plots and show them