def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def close(figure):
        """!
        @brief Closes figure object that was used or allocated by the visualizer.