I have a simple text file composed of 8 columns and I read it with loadtxt function. I want to plot as x-axis column6-column7 and as y-axis column7-column8 so I put this command
>>> pl.plot(np.subtract(data2[:,6], data2[:7]), np.subtract(data2[:,7], data2[:,8]))
and it gave this error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: operands could not be broadcast together with shapes (59427) (7,9)
What is the problem? and how to do that?