title: Setting Different error bar colors in bar plot in matplotlib
body: <p>Following <a href="https://stackoverflow.com/questions/18973404/settting-different-bar-color-in-matplotlib-python/18973430#18973430">Setting Different Bar color in matplotlib Python</a></p>
  
  <p>I would like to change the error bar colors. I have figured out a way after a number of attempts:</p>
  
  <pre><code>a = plt.gca()
  b = a.bar(range(4), [2]*4, yerr=range(4))
  c = a.get_children()[8]
  c.set_color(['r','r','b','r'])
  </code></pre>
  
  <p>Is there any better way? Certainly <code>a.get_children()[8]</code> is not a general solution at all.</p>
  
  <p><img src="https://i.stack.imgur.com/YXGrn.png" alt="enter image description here"></p>