Fix all arrays for plotwake function
Move set pltparams into main function in case LaTeX is not available
LaTeX now not a strict dependency, though part of setpltparams