title: How can I get the stemlines color to match the marker color in a stem plot?
body: <p>Stem lines are always blue:</p>
  <pre><code>import matplotlib.pyplot as plt
  import numpy as np
  x = np.linspace(0.1, 2*np.pi, 10)
  
  plt.stem(x, np.sin(x), markerfmt='o', label='sin')
  plt.stem(x+0.05, np.cos(x), markerfmt='o', label='cos')
  plt.legend()
  
  plt.show()
  </code></pre>
  <p>produce:
  <a href="https://i.stack.imgur.com/ypiW1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ypiW1.png" alt="stem lines don't match markers" /></a></p>
  <p>I want the stem lines to match the color of the markers (blue for the first dataset, green for the second).</p>