I want to create a graph with different variables on the x axis, and plot two confidence intervals for each variable. I have used plt.errorbar to achieve this. My problem is that I can't find a way to specify labels for the x-axis variables. Currently, the x-axis is just integers. If I change it to strings, then I am unable to plot the two confidence intervals per variable. I use "x = ... +0.2" to get them on the same plot.
plt.errorbar(
x=range(10,
y= data1,
yerr = data1_err,
)
plt.errorbar(
x=range(10),
y= data2,
yerr=data2_err,
)
plt.show()
Could anyone offer some hints or if its not possible with this function, to perhaps recommend another one? I need to plot vertical lines indicating confidence intervals, and they will be over both positive and negative values of y.
