I assume that you saved a previous plot under the variable name plot. But that happened to overwrite the plot function so now Julia complains that you can’t call a Plot object. You could probably get it back by doing plot = Plots.plot.
Ok now that is really weird, why is it even indexing anything? Id just restart the session and try again, I see no reason why your first code shouldn’t work
Oh so you got the error after you used the reassigned plot, ok now it makes sense. Yes you can’t plot two vectors of different length, x is 20 long and y 35. What did you expect would be displayed in that case?