Change the color of the plot depending on the density (stored in an array) in line plot in matplotlib,plt.show()