0

enter image description here my current code is - sns.relplot(x = 'goals', y = 'assists', data = total_assists_goals)

I have a dataframe which has players data - their goals and assists.

I made a scatter graph with seaborn (which you can see in the link below) and I want to annotate some points.

I want to annotate the points that have more than 100 goals, and more than 50 assists. I want the annotation to include the players names.

I guess i want it to run through (for loop ?) the list of goals and assists and find the names of the players that have over a certain amount of goals and assists and print those names onto the points i want labelled.

I appreciate any help, and if you have further questions, please ask in the comments. Thanks

  • 1
    Does this answer your question? [Adding labels in x y scatter plot with seaborn](https://stackoverflow.com/questions/46027653/adding-labels-in-x-y-scatter-plot-with-seaborn) – RoseGod Dec 14 '21 at 18:09

0 Answers0