Updating plotting macro