It would be helpful if you posted your data, so we know exactly how it is stored (e.g. do you just have the years stored as numeric values, or do you have whole dates stored as datetime type?).
But, it looks like you did
which will default to plotting x = 1:N, where N is the number of data points in y.
Instead, you should