I have two 2D arrays (lat,lon), both derived from the same netcdf (.nc) file. Both the arrays have the same shape. My aim is to make a line plot with these two arrays. I expect it to be a simple curve with one line but am getting multiple lines. I am very confused. What is the obvious error in my code?
#shape of arrays:
#array 1= (96, 192)
#array 2= (96, 192)
x=array1
y=array2
plt.plot(x[:],y[:])