Plotting histogram or scatter plot with matplotlib,plt.show()