benchmarks/scripts/plotter.py
def create_plot_parameter(title: str,
                          xlabel: str,
                          ylabel: str,
                          regexes: (str, str),
                          name: str,
                          parameter_domain: list,
                          dataset: dict,
                          test_groups: [str],
                          ext_all=False):
    """Creates all possible functions according to a given
    parameter and the plot domain. Then it calls the create_plot
    with the adequate parameters."""
    functions = []
    var_domain = None

    if len(test_groups) > 0:
        for val in parameter_domain:
            for group in test_groups:  # For testing different type of datasets
                regex = group + regexes[0] + val + regexes[1]

                # 1st iteration
                if var_domain == None:
                    var_domain = extract_all(regex, dataset)[0]\
                        if ext_all else extract(regex, dataset)[0]

                functions.append((
                    group + name + val,
                    extract_all(regex, dataset)[1]
                    if ext_all else extract(regex, dataset)[1]
                ))
    else:
        for val in parameter_domain:
            regex = regexes[0] + val + regexes[1]

            # 1st iteration
            if var_domain == None:
                var_domain = extract_all(regex, dataset)[0]\
                    if ext_all else extract(regex, dataset)[0]

            functions.append((
                name + val,
                extract_all(regex, dataset)[1]
                if ext_all else extract(regex, dataset)[1]
            ))

    create_plot(title, xlabel, ylabel, var_domain, *functions)
Creates all possible functions according to a given
    parameter and the plot domain. Then it calls the create_plot
    with the adequate parameters.
Creates all possible functions according to a given
parameter and the plot domain. Then it calls the create_plot
with the adequate parameters.
Creates all possible functions according to a given parameter and the plot domain . Then it calls the create_plot with the adequate parameters .
def create_plot_parameter(title: str,
                          xlabel: str,
                          ylabel: str,
                          regexes: (str, str),
                          name: str,
                          parameter_domain: list,
                          dataset: dict,
                          test_groups: [str],
                          ext_all=False):
    functions = []
    var_domain = None
    if len(test_groups) > 0:
        for val in parameter_domain:
            for group in test_groups:  
                regex = group + regexes[0] + val + regexes[1]
                if var_domain == None:
                    var_domain = extract_all(regex, dataset)[0]\
                        if ext_all else extract(regex, dataset)[0]
                functions.append((
                    group + name + val,
                    extract_all(regex, dataset)[1]
                    if ext_all else extract(regex, dataset)[1]
                ))
    else:
        for val in parameter_domain:
            regex = regexes[0] + val + regexes[1]
            if var_domain == None:
                var_domain = extract_all(regex, dataset)[0]\
                    if ext_all else extract(regex, dataset)[0]
            functions.append((
                name + val,
                extract_all(regex, dataset)[1]
                if ext_all else extract(regex, dataset)[1]
            ))
    create_plot(title, xlabel, ylabel, var_domain, *functions)
def create_plot_parameter ( title : str , xlabel : str , ylabel : str , regexes : ( str , str ) , name : str , parameter_domain : list , dataset : dict , test_groups : [ str ] , ext_all = False ) : functions = [ ] var_domain = None if len ( test_groups ) > 0 : for val in parameter_domain : for group in test_groups : regex = group + regexes [ 0 ] + val + regexes [ 1 ] if var_domain == None : var_domain = extract_all ( regex , dataset ) [ 0 ] if ext_all else extract ( regex , dataset ) [ 0 ] functions . append ( ( group + name + val , extract_all ( regex , dataset ) [ 1 ] if ext_all else extract ( regex , dataset ) [ 1 ] ) ) else : for val in parameter_domain : regex = regexes [ 0 ] + val + regexes [ 1 ] if var_domain == None : var_domain = extract_all ( regex , dataset ) [ 0 ] if ext_all else extract ( regex , dataset ) [ 0 ] functions . append ( ( name + val , extract_all ( regex , dataset ) [ 1 ] if ext_all else extract ( regex , dataset ) [ 1 ] ) ) create_plot ( title , xlabel , ylabel , var_domain , * functions )
Creates all possible functions according to a given
parameter and the plot domain.
Creates all possible functions according to a given parameter and the plot domain .
"""Creates all possible functions according to a given
    parameter and the plot domain. Then it calls the create_plot
    with the adequate parameters.""" # For testing different type of datasets # 1st iteration # 1st iteration
title
str
xlabel
str
ylabel
str
regexes
(str, str)
name
str
parameter_domain
list
dataset
dict
test_groups
[str]
ext_all