title: plot data points in python using pylab
body: <p><img src="https://i.stack.imgur.com/zHJLf.png" alt="enter image description here">I have data which I have to plot</p>
  
  <p>X = [0,1,2,3,4,5]
  Y = [6,7,8,9,10,11,12,13,14,15]</p>
  
  <p>X belongs to class1, so I would want them to be plotted green in color and Y belongs to class2, so I would want them to be plotted blue in color.</p>
  
  <p>What I did was,</p>
  
  <pre><code>import pylab as pl
  pl.plot(X,'go')
  pl.plot(Y,'bo')
  pl.show()
  </code></pre>
  
  <p>But this is plotting X against Y. All I want to display in my graph is just the points X and Y in green and blue colors respectively.</p>
  
  <p>How can I accomplish this?</p>