I am using matplotlib.pyplot module imported as plt for plots.
In the plt.plot() statement, if I pass the arguments as "x= array1, "y= array2", I get "TypeError: plot got an unexpected keyword argument 'x' ".
The code gets executed correctly if I simple pass "array1 and array2", without explicitly saying they correspond to x and y axes.
Why is that?