Skip to content

Commit dabaeeb

Browse files
authored
Merge pull request #76 from converged-computing/fix-mixbench-stream-colors
analysis: fix colors for stream, mixbench, magma
2 parents 60819f8 + f0ee4af commit dabaeeb

44 files changed

Lines changed: 13 additions & 8 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

analysis/magma/1-run-analysis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ def plot_results(results, df, outdir):
246246
plt.figure(figsize=(10, 6))
247247

248248
offsets = [-0.75, -0.5, -0.25, 0.25, 0.5, 0.75]
249-
colors = ["#003f5c", "#58508d", "#bc5090", "#de5a79", "#ff6361", "#ffa600"]
249+
palette = sns.color_palette("hls", 6)
250+
colors = palette.as_hex()
250251
for experiment, values in ms_vectors.items():
251252
positions = np.array(np.arange(len(values))) * 2.0 + offsets.pop(0)
252253
plot = plt.boxplot(
20 Bytes
-16 Bytes
106 Bytes
101 Bytes

analysis/mixbench/1-run-analysis.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import re
77
import sys
88
import pandas
9-
import matplotlib.pylab as plt
109

1110
import seaborn as sns
1211

@@ -196,7 +195,6 @@ def parse_data(indir, outdir, files):
196195

197196
# It's important to just parse raw data once, and then use intermediate
198197
for filename in files:
199-
200198
# Underscore means skip, also skip configs and runs without efa
201199
# runs with google and shared memory were actually slower...
202200
dirname = os.path.basename(filename)
@@ -229,7 +227,6 @@ def parse_data(indir, outdir, files):
229227
# Now we can read each result file to get metrics.
230228
results = list(ps.get_outfiles(filename))
231229
for result in results:
232-
233230
# Skip over found erroneous results
234231
if errors and re.search(error_regex, result):
235232
print(f"Skipping {result} due to known missing result or error.")
@@ -363,7 +360,6 @@ def plot_results(results, outdir):
363360
palette = collections.OrderedDict()
364361
for t in types:
365362
palette[t] = hexcolors.pop(0)
366-
title = " ".join([x.capitalize() for x in metric.split("_")])
367363

368364
if len(metric_df.value.unique()) == 1:
369365
print(

analysis/mixbench/2-parse-csv.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@
22

33
import argparse
44
import os
5-
import re
65
import matplotlib.pylab as plt
76
import csv
87
import seaborn as sns
98
import numpy as np
9+
import sys
1010

1111
here = os.path.dirname(os.path.abspath(__file__))
1212
sns.set_theme(style="whitegrid", palette="pastel")
13+
analysis_root = os.path.dirname(here)
14+
root = os.path.dirname(analysis_root)
15+
sys.path.insert(0, analysis_root)
16+
17+
import performance_study as ps
1318

1419

1520
def get_parser():
@@ -227,7 +232,8 @@ def plot_results(results, metric_type, outdir):
227232
# side
228233
plt.figure(figsize=(20, 6))
229234
offsets = [-0.75, -0.5, -0.25, 0.25, 0.5, 0.75]
230-
colors = ["#003f5c", "#58508d", "#bc5090", "#de5a79", "#ff6361", "#ffa600"]
235+
palette = sns.color_palette("hls", 6)
236+
colors = palette.as_hex()
231237
for experiment, values in vectors.items():
232238
# TODO figure this out...
233239
positions = np.array(np.arange(len(values))) * 2.0 + offsets.pop(0)
-9 Bytes
17 Bytes
456 Bytes

0 commit comments

Comments
 (0)