update plotting macro