draft macros for drawing plots