title: Matplotlib - Border around scatter plot points
body: <p>I am following <a href="https://www.datacamp.com/community/tutorials/machine-learning-python" rel="noreferrer">this tutorial</a>.</p>
  
  <p>I would like to use Matplotlib to create a scatter plot with points that are colored inside, but have a black border, such as this plot:</p>
  
  <p><img src="https://i.stack.imgur.com/alYVj.png" alt="photo"></p>
  
  <p>However, when I copy the code exactly, I get this plot instead.</p>
  
  <p><a href="https://i.stack.imgur.com/RxDjr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RxDjr.png" alt="enter image description here"></a></p>
  
  <p>Here is the code:</p>
  
  <pre><code>colors = ['black', 'blue', 'purple', 'yellow', 'white', 'red', 'lime', 'cyan', 'orange', 'gray']
  for i in range(len(colors)):
      x = reduced_data_rpca[:, 0][digits.target == i]
      y = reduced_data_rpca[:, 1][digits.target == i]
      plt.scatter(x, y, c=colors[i])
  plt.legend(digits.target_names, bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.)
  plt.xlabel('First Principal Component')
  plt.ylabel('Second Principal Component')
  plt.title("PCA Scatter Plot")
  plt.show()
  </code></pre>
  
  <p>I tried adjusting the style, but that didn't help.</p>