title: Python scatter plot different colors depending on value
body: <p>I have a dataframe which i want to make a scatter plot of. </p>
  
  <p>the dataframe looks like: </p>
  
  <pre><code>       year  length  Animation
  0      1971     121       1
  1      1939      71       1
  2      1941       7       0
  3      1996      70       1
  4      1975      71       0
  </code></pre>
  
  <p>I want the points in my scatter plot to be a different color depending the value in the Animation row.<br>
  So animation = 1 = yellow<br>
  animation = 0 = black<br>
  or something similiar</p>
  
  <p>I tried doing the following: </p>
  
  <pre><code>dfScat = df[['year','length', 'Animation']]
  dfScat = dfScat.loc[dfScat.length &lt; 200]    
  axScat = dfScat.plot(kind='scatter', x=0, y=1, alpha=1/15, c=2)
  </code></pre>
  
  <p>This results in a slider which makes it hard to tell the difference. <a href="https://i.stack.imgur.com/FJ6zB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FJ6zB.png" alt="enter image description here"></a></p>