Error using plot Data cannot have more than 2 dimensions.