Say I have measurements with x and y values
x = [1, 2, 3, 4]
y = [10, 9, 8, 7]
and the measurements have upper and lower limits on the y values (i.e., where the errorbars should end)
y_lower = [6, 5, 3, 6.5]
y_upper = [12, 10.5, 9, 7]
Can I use plt.errorbar()
to plot errorbars from y_lower
to y_upper
for each of these four points? In other words, I would like to use plt.errorbar()
with endpoints for the errorbars, not their sizes.