def setSyntax(self, syntax):
        """Choose smart indentation algorithm according to syntax"""
        self._smartIndenter = self._chooseSmartIndenter(syntax)
def close(figure):
        """!
        @brief Closes figure object that was used or allocated by the visualizer.