initial version of macros to produce the final plots