get_message_output function

Internal function for returning message as plot data