most of graphix ex2 and start of template plots