title: How to scatter plot 2d array in Python
body: <p>How do you plot a scatter plot for an array <code>result_array</code> of shape <code>(1087, 2)</code> that looks like this:</p>
  <pre><code>array([[-1.89707840e+03,  3.99819932e+00],
         [-2.55018840e+03, -2.61913223e+00],
         [-1.85480840e+03, -2.36545732e-01],
         ...,
         [-1.64432840e+03,  9.79555441e+00],
         [-1.59022840e+03,  1.08955493e+01],
         [-1.73963840e+03,  3.60132161e-01]])
  </code></pre>
  <p>?</p>
  <hr />
  <p>Update:</p>
  <p>Tried:</p>
  <pre><code>import matplotlib.pyplot as plt
  plt.scatter(result_array[:, 0], result_array[:, 1])
  plt.show()
  </code></pre>
  <p>and the plot looks like this:
  <a href="https://i.stack.imgur.com/Cfp4E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cfp4E.png" alt="enter image description here" /></a></p>