def METHOD_NAME(self, nlimit=50):
    """
    Creates group by the active result
    This should really only be called for integer results < 50-ish.
    """
    try:
        #self.scalar_bar.title
        case_key = self.gui.case_keys[self.gui.icase] # int for object
        obj, (i, res_name) = self.gui.result_cases[case_key]
        default_title = obj.get_default_title(i, res_name)
        location = obj.get_location(i, res_name)
        if obj.data_format != '%i':
            self.gui.log.error('not creating result=%r; must be an integer result' % res_name)
            return 0
        if location != 'centroid':
            self.gui.log.error('not creating result=%r; must be a centroidal result' % res_name)
            return 0
        word = default_title
        prefix = default_title
        ngroups = self._create_groups_by_name(word, prefix, nlimit=nlimit)
        self.gui.log_command('create_groups_by_visible_result()'
                             ' # created %i groups for result_name=%r' % (ngroups, res_name))
    except Exception as error:
        self.gui.log_error('\n' + ''.join(traceback.format_stack()))
        #traceback.print_exc(file=self.log_error)
        self.gui.log_error(str(error))
        if self.gui.IS_GUI_TESTING:
            raise
    return ngroups