title: How to pick a new color for each plotted line within a figure in matplotlib?
body: <p>I'd like to NOT specify a color for each plotted line, and have each line get a distinct color. But if I run:</p>
  
  <pre><code>from matplotlib import pyplot as plt
  for i in range(20):
      plt.plot([0, 1], [i, i])
  
  plt.show()
  </code></pre>
  
  <p>then I get this output:</p>
  
  <p><a href="https://i.stack.imgur.com/QrREj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QrREj.png" alt="Image of the graph output by the code above"></a></p>
  
  <p>If you look at the image above, you can see that matplotlib attempts to pick colors for each line that are different, but eventually it re-uses colors - the top ten lines use the same colors as the bottom ten. I just want to stop it from repeating already used colors AND/OR feed it a list of colors to use.</p>