Print plots

Plots should now be printed when code run in function