Macro to make plots with mixed events