Plot directly to file

Maybe Deactivate plot display to avoid need for X server - #2 by jheinen ?