if no linestyles are give, this wil be handled automatically
Write plotinfo to file. is done for all functions, except plotEnergy