Yes the script used daily returns. Not annual returns.

I am not sure that the plot scale multiplying with 252 for getting annual returns is correct. Markowitz is a black box to me but the effect on covariance is probably nonlinear. I would rather modify the return calculation from (price(0)-price(1)) to (price(0)-price(252)).