Can I use different colors for the bars and error bars?

Responsive Ad Header

Question

Grade: Education Subject: Support
Can I use different colors for the bars and error bars?
Asked by:
55 Viewed 55 Answers

Answer (55)

Best Answer
(302)
Yes, you can. Use the `Color` property of the `bar` function and the `Color` property of the `errorbar` function to specify different colors for the bars and error bars, respectively. For example, `bar(x,y, 'Color', 'blue', 'yerr', error_values, 'Color', 'red')` will plot blue bars and red error bars.