aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xplot.py7
-rwxr-xr-xrun.rb4
2 files changed, 6 insertions, 5 deletions
diff --git a/plot.py b/plot.py
index 31262c3..dcbb714 100755
--- a/plot.py
+++ b/plot.py
@@ -19,14 +19,15 @@ if len(sys.argv) < 2:
# decode json data from first argument
data = json.loads(sys.argv[1])
+rows = data['rows'][::-1]
# plot values
plt.barh(
- np.arange(len(data['rows'])),
- [row[1] for row in data['rows']],
+ np.arange(len(rows)),
+ [row[1] for row in rows],
align = 'center',
alpha = 0.5,
- tick_label = [row[0] for row in data['rows']]
+ tick_label = [row[0] for row in rows]
)
# set plot parameters
diff --git a/run.rb b/run.rb
index d21166d..e9d41c4 100755
--- a/run.rb
+++ b/run.rb
@@ -720,7 +720,7 @@ module PiBench
svgs[arch] << {
algo: algo,
path: svg[:path],
- rows: svg[:rows].reverse,
+ rows: svg[:rows],
title: svg[:title],
}
@@ -774,7 +774,7 @@ module PiBench
'%s (%d bytes)' % [row[0], row[1].to_i],
(row[2].to_f / 1048576).round(2),
]
- }.reverse,
+ },
}
end