macro for coupling plot