Added plt.show() statements to show plots outside IDE