plt.clf()
fig = plt.figure()
ax = fig.add_subplot(111, axisbg='w', frame_on=True)
fig.set_size_inches(18.5, 10.5)
colors = plt.cm.rainbow(np.linspace(0, 1, 20))
Make legend correspond to colors of scatter points in matplotlib