avatar
Untitled

Guest 20 6th Nov, 2019

MARKUP 0.35 KB
                                           
                         plt.scatter(temperature,humidity,c=rainfall)
plt.xlabel("Temperature (C)")
plt.ylabel("Humidity (%)")
plt.grid(True)
bar = plt.colorbar()  # add a color bar
bar.ax.set_title("Rainfall (mm)")  # add title to the color bar
plt.set_cmap("jet")  # set color mapping scheme to "jet"
plt.show()
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes