Question
Can I use different colors for the bars and error bars?
Asked by: USER3748
55 Viewed
55 Answers
Answer (55)
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.