macro for paper plot