I am getting the error below when I try to plot the error bar of some data I read from a csv file using pandas read_csv.
ax.errorbar(x1, y1, yerr = std1, marker='d',color='y', label='y1')
File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 5762, in errorbar
xo, _ = xywhere(x, lower, everymask)
File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 5669, in xywhere
assert len(xs) == len(ys)
AssertionError
the code I used is:
ress=pd.read_csv('/path/myfile', delimiter=',',skiprows=[0],header=None,dtype=None)
x1=ress[[0]]
y1=ress[[3]]
std1=ress[[4]]
ax=plt.subplot(111)
ax.errorbar(x1,y1,yerr=std1,marker='d',color='y',label='y1')
I thought at first that x1 and y1 aren't of the same dimensions so I printed x1.shape, y1.shape, and std1.shape and all of them where (11,1). P.S. (11,1) is a correct way of representing my data.
Do you know why I am getting this error?
Thanks in advance

x1,y1, andstd1and show their content here.