You can use plt.colorbar() straight up, without arguments, because pyplot knows about your scatter plot. As a previous commenter suggested, it's easier to use plt.scatter for this example:
import matplotlib.pyplot as plt
x = [1,2,3,4]
y = [10,20,30,40]
Temp = [100,200,300,400]
plt.scatter(x,y,c=Temp)
plt.colorbar()
plt.show()
You can put all sorts of weird and wonderful arguments into plt.scatter. Check out the documentation and also the matplotlib thumbnails for inspiration. Happy matplotlibbing.