Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. age = mpatches.Patch(color= color_annotate, label='Age: ' + str(int(data.Age[row])))
  2. posit = mpatches.Patch(color= color_annotate, label='Position: ' + data.Position[row])
  3. numb = mpatches.Patch(color= color_annotate, label='Jersey Number: ' + str(int(data.Jersey_Number[row])))
  4. height = mpatches.Patch(color= color_annotate, label='Height: ' + data.Height[row])
  5. weight = mpatches.Patch(color= color_annotate, label='Weight: ' + data.Weight[row])
  6. body = mpatches.Patch(color= color_annotate, label='Body Type: ' + data.Body_Type[row])
  7. foot = mpatches.Patch(color= color_annotate, label='Preferred Foot: ' + data.Preferred_Foot[row])
  8. value = mpatches.Patch(color= color_annotate, label= 'Value: ' + data.Value[row])
  9. wage = mpatches.Patch(color= color_annotate, label='Wage: ' + data.Wage[row])
  10. loaned = mpatches.Patch(color= color_annotate, label='Loaned From: ' + data.Loaned_From[row])
  11. joinde = mpatches.Patch(color= color_annotate, label='Joined: ' + data.Joined[row])
  12. contract = mpatches.Patch(color= color_annotate, label='Contract Valid: ' + data.Contract_Valid[row])
  13.  
  14. ax.legend(handles=[age, posit, numb, height, weight, body, foot, value, wage, loaned, joinde, contract], bbox_to_anchor=(1.30, 1.08),
  15. loc='upper left', borderaxespad=0.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement