plotscript for gui