title: matplotlib get errorbar color from legend
body: <p>Is there anything equvilent to this code</p>
  
  <pre><code>plt.plot([1,2,3],[1,2,3],label='22')
  z  = plt.legend()
  tm = z.get_lines()
  tm[0].get_color()
  </code></pre>
  
  <p>but for errorbars?</p>
  
  <pre><code>plt.errorbar([1,2,3],[1,2,3],[0.5,0.5,0.5],label='22')
  z  = plt.legend()
  tm = z.get_ ???? 
  tm[0].get_color()
  </code></pre>
  
  <p>I did z.get+ 
  This is what I see:
  <img src="https://i.stack.imgur.com/BDA3m.jpg" alt="enter image description here"></p>
  
  <p>I tried many of them but no luck</p>
  
  <p>Thank You.</p>