I have 3 data series that share the same index values:
series a
A 0.6
B 0.4
C 0.7
D 0.5
series b
A 0.8
B 0.4
C 0.7
D 0.5
series c
A 10
B 23
C 50
D 100
series a and b are my x and y axis. I would like to use series c to designate the color of the dots (if value at c > 80 then colors = red elif value at c > 20 then colors = blue).
This is what my code looks like so far:
colors = 'black' #default color
plt.scatter(a, b, s=np.pi*1, c=colors, alpha=0.5)
#this is what I'm looking for
#if value at c > 80 then colors = red elif value at c > 20 then colors = blue
plt.show()
this is what the finished graph would look like:
Thanks!


