I have a scatter plot that looks like this:
I can use the following code to add text from a list to every scatter point:
# Add text names to the plot
for i, txt in enumerate(names):
ax.annotate(txt, (x[i],y[i]), alpha=0.6)
However I only want to annotate the points that are past 2 on the x-axis and above 2 on the y-axis. How do I go about doing that? The Matplotlib documentation doesn't give me information on marking specific points unless I already know exactly which ones I want to edit (In this case, I don't).
