I want to plot some data points with errorbars. Some of these data points have only upper or lower limit, instead of error bars.
So I was trying to use indices to differentiate between the points with errorbars, and the points with upper/lower limits. However, when I try something like this:
errorbar(x[i], y[i], yerr = (ymin[i], ymax[i]))
I receive the error:
ValueError: In safezip, len(args[0])=1 but len(args[1])=2
This is similar to the discussion here, but I don't use pandas, and however, it would be really useful to me to read some other few words about that.
In any case, I tried to "turnaround" the error in the following way:
errorbar(x[i], y[i], yerr = [[ymin[i], ymax[i]]], uplims = True)
But the resulting plot is not clear: it seems that the upper limit AND the errorbars are plotted together, or the upper limit is plotted twice...
The goal is to plot upper/lower limits when the upper and lower error bars are not symmetrical, so I can choose the length of the bar before the arrow for the upper/lower limit.
