sets size of dots cm = plt.cm.get_cmap('plasma_r') #sets colour scheme  plt.scatter(N000000['Kilometer'], N000000['Time'], marker_size, c=N000000['Speed'], cmap=cm) plt.title("NDW 00-00-00") plt.xlabel("Kilometer") plt.ylabel("Time") plt.colorbar().set_label("Speed", labelpad=+0) #Makes a legend plt.show()  