diff options
author | Paul Duncan <pabs@pablotron.org> | 2019-07-22 22:36:23 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2019-07-22 22:36:23 -0400 |
commit | 9565a153a178e8143f3d44248c399a89462e33df (patch) | |
tree | 2f707ad79de6a8b1836d45d99f22620f34a77caa /plot.py | |
parent | f6ecc936398b054dbbb9e9975db6a3ff8cc16ae8 (diff) | |
download | pi4-bench-9565a153a178e8143f3d44248c399a89462e33df.tar.bz2 pi4-bench-9565a153a178e8143f3d44248c399a89462e33df.zip |
move reverse from run.rb to plot.py
Diffstat (limited to 'plot.py')
-rwxr-xr-x | plot.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |