Can we set a different lower and upper value for the y error bars?


#1

Question

In the context of this exercise, can we set a different lower and upper value for the y error bars?

Answer

No, currently there is no clear or easy way to set different lower and upper values for y error bars on a bar chart in Matplotlib.

Error bars having different lower and upper values are also referred to as “asymmetric error bars”. At this current point in time, Matplotlib only supports “symmetric error bar” values, so applying asymmetric error bars will either not be possible or difficult to apply using some clever trick.