Adding macros for plots