title: Scatter Problem : ValueError: 'c' argument has 2 elements, which is inconsistent with 'x' and 'y' with size 70120
body: <p>I hope you're doing well. I am making a scatter chart using matplotlib in python and want that scatter points of X and Y axis have different colors. I am giving an array to it but for some reason it is giving error.</p>
  <blockquote>
  <p>Scatter Problem : ValueError: 'c' argument has 2 elements, which is
  inconsistent with 'x' and 'y' with size 70120</p>
  </blockquote>
  <p>Here's my code</p>
  <pre><code>import matplotlib.pyplot as plt
  import pandas as pd
  
  #Reading The Data
  soc_data = pd.read_csv('research/featurespace/optical_sar.csv')
  print(soc_data.columns)
  
  # Axis Data
  x = soc_data.SOCOptical
  y = soc_data.SOCSAR
  
  #plotting
  plt.scatter(x,y,s=0.001,color=['green','yellow'])
  plt.title('2D Feature Space - SOC Optical v/s SOC SAR')
  plt.xlabel('Optical Predicted SOC')
  plt.ylabel('SAR Predicted SOC')
  plt.show()
  </code></pre>
  <p>When I remove the color property this chart is displayed.</p>
  <p><a href="https://i.stack.imgur.com/pFI9d.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>Kindly help me.</p>