Skip to content
Snippets Groups Projects
Commit 77ce65cd authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Fix plotting

parent 5c29408a
No related branches found
No related tags found
1 merge request!11Add batch approach for matrix multiplication
Pipeline #84007 passed
...@@ -5,7 +5,7 @@ import seaborn ...@@ -5,7 +5,7 @@ import seaborn
import pandas import pandas
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
seaborn.set_theme(style="whitegrid", palette="colorblind") seaborn.set_theme(palette=seaborn.color_palette("bright", n_colors=10), style="whitegrid")
def parse_args(): def parse_args():
parser = ArgumentParser(description="Combine benchmark metrics from Google Benchmarks Framework") parser = ArgumentParser(description="Combine benchmark metrics from Google Benchmarks Framework")
...@@ -47,7 +47,9 @@ def create_summary_plot(metrics, outplot_name): ...@@ -47,7 +47,9 @@ def create_summary_plot(metrics, outplot_name):
time_unit = metrics.time_unit[0] time_unit = metrics.time_unit[0]
grid = seaborn.FacetGrid(metrics, col="architecture", row="parameters") grid = seaborn.FacetGrid(metrics, col="architecture", row="parameters")
grid.map(seaborn.barplot, "compiler_version", "cpu_time", "name")
grid.set_titles(template="Arch: {row_name} - {col_name}")
grid.map(seaborn.barplot, "compiler_version", "cpu_time", "method")
grid.set_ylabels(f"CPU time({time_unit})") grid.set_ylabels(f"CPU time({time_unit})")
grid.add_legend() grid.add_legend()
grid.savefig(outplot_name + ".png") grid.savefig(outplot_name + ".png")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment