Scatter pyplot option: vector of value for colors, one for each point

How can we feed a vector of values as color input into scatter plot using pyplot? I read one need to specify cmap, but I could find a clear example. My aim to having a vector of values, one per observation, that makes the dots in the scatter plots darker if the value is higher.