using show() and close() from matplotlib,plt.show()