I'm trying to figure out why this piece of my code won't work. I'm trying to set "mark" as a variable so that it can use different markers depending on what a certain column reads. Everything else in the plot works fine, but when I add this part:
mark = ["s" if t == "M" else "o" for t in z]
plt.scatter(x2[yesGEM],y1[yesGEM],c="green",label='Observed (GemN)', marker=mark)
I get:
ValueError: Unrecognized marker style ['o', 's', 'o', 'o', 'o', 's', 'o', 'o',......'o']
Any idea why this is?