Esempio n. 1
0
def plot_gat_stacked(db, algorithms: list, domain: str, instance: str, action_duration: int,
                     old_idle_time: bool = False):
    """ Plot goal achievement time and idle planning time stacked bar chart.
    :param db: the db handler
    :param algorithms: the algorithms to graph
    :param domain: the domain
    :param instance: the domain instance
    :param action_duration: the action duration
    :param old_idle_time: whether to use the old idle planning time parameters before a designated field was added
    """
    data, labels, _ = get_gat_data(db, algorithms, domain, instance, action_duration, old_idle_time=old_idle_time)
    plotutils.plot_gat_stacked_bars(data, labels)
Esempio n. 2
0
def plot_gat_stacked(db,
                     algorithms,
                     domain,
                     instance,
                     action_duration,
                     old_idle_time: bool = False):
    data, labels, _ = get_gat_data(db,
                                   algorithms,
                                   domain,
                                   instance,
                                   action_duration,
                                   old_idle_time=old_idle_time)
    plotutils.plot_gat_stacked_bars(
        data,
        labels,
        title=plotutils.translate_domain_name(domain) + "-" + instance)
Esempio n. 3
0
 def plot_stacked(data, labels, file_header=file_header, print_suffix=""):
     stacked_markdown = ""
     if not quiet:
         msg = "Plotting stacked bars: {} - {} - {} - {}".format(domain, instance, action_duration,
                                                                 domain_configuration)
         if print_suffix:
             msg += " - {}".format(print_suffix)
         print(msg)
     stacked_markdown += do_plot(file_header, "stacked", lambda:
     plotutils.plot_gat_stacked_bars(data, labels, title=action_plot_title, log10=log10))
     return stacked_markdown
def plot_gat_stacked(db,
                     algorithms: list,
                     domain: str,
                     instance: str,
                     action_duration: int,
                     old_idle_time: bool = False):
    """ Plot goal achievement time and idle planning time stacked bar chart.
    :param db: the db handler
    :param algorithms: the algorithms to graph
    :param domain: the domain
    :param instance: the domain instance
    :param action_duration: the action duration
    :param old_idle_time: whether to use the old idle planning time parameters before a designated field was added
    """
    data, labels, _ = get_gat_data(db,
                                   algorithms,
                                   domain,
                                   instance,
                                   action_duration,
                                   old_idle_time=old_idle_time)
    plotutils.plot_gat_stacked_bars(data, labels)