title: Not able to understand the plotting of 2-Dimensional graph in python matplotlib
body: <p>The data corresponds to 3 rows where the first row is the marks of Exam number one of a particular student and row number two is the marks in Exam number 2 of the student. The third row corresponds to 0 or 1 indicating his probability to enter a particular University.
  Here is the code given for plotting the graph which I am not able to understand.</p>
  <pre><code># Find Indices of Positive and Negative Examples
  pos = y == 1
  neg = y == 0
  
  # Plot Examples
  pyplot.plot(X[pos, 0], X[pos, 1], 'k*', lw=2, ms=10)
  pyplot.plot(X[neg, 0], X[neg, 1], 'ko', mfc='y', ms=8, mec='k', mew=1)
  </code></pre>
  <p>The output is the image given below:</p>
  <p><a href="https://i.stack.imgur.com/kRgoW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kRgoW.png" alt="2-Dimensional Plot" /></a></p>
  <p>Any help in explaining the code is appreciated.</p>