title: how to specified color in plot from matplotlib
body: <p>I have player data from fifa 19. It has Composure, Penalties ability, and Nationality. I would like to plot in a figure with X axis is Composure and Y axis is Penalties ability, but i would like to color it if the player from some nationality. I have this code:</p>
  
  <pre><code>import pandas
  import math
  import matplotlib.pyplot as plt
  
  df= pandas.read_csv('fifa19.csv')
  
  n= len(df)
  x=[]
  y=[]
  fig, ax=plt.subplots()
  j=0
  for i in range(n):
     if(not math.isnan(df['Composure'][i])
         and not math.isnan(df['Penalties'][i])):
         x.append(df['Composure'][i])
         y.append(df['Penalties'][i])
     if(df['Nationality'][i]=='Brazil'): #it supposed to be blue if the nationality is brazil else is default(correct me if i'm wrong)
         ax.plot(x, y, 'o', color='blue')
  
  ax.set_xlabel('Composure attribute')
  ax.set_ylabel('Penalties attribute')
  fig.show()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/G1tro.png" rel="nofollow noreferrer">
  But it all turned to blue.</a> 
  I have tried to change the loop like this:</p>
  
  <pre><code>if(df['Nationality'][i]=='Brazil'): 
          ax.plot(x[i], y[i], 'o', color='blue')
  </code></pre>
  
  <p>But it says 'IndexError: list index out of range'. Any idea how to color it using plot? Thank you for your help.</p>