diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-05-02 15:47:33 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-05-02 15:47:33 +0200 |
| commit | 48a2d06dc7b9dbde36d3979a019457b3d6fc188d (patch) | |
| tree | 703988e57afca7929abe49c596dfd99d7a838f46 /bench/plot.py | |
| parent | plot: merge identical graphs (diff) | |
| download | libzahl-48a2d06dc7b9dbde36d3979a019457b3d6fc188d.tar.gz libzahl-48a2d06dc7b9dbde36d3979a019457b3d6fc188d.tar.bz2 libzahl-48a2d06dc7b9dbde36d3979a019457b3d6fc188d.tar.xz | |
plot: adjust y-axis
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'bench/plot.py')
| -rwxr-xr-x | bench/plot.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bench/plot.py b/bench/plot.py index ff089c3..91b33f9 100755 --- a/bench/plot.py +++ b/bench/plot.py @@ -86,6 +86,9 @@ ypoints = [ypoints[i[0]] for (i, _) in merged] values = [values[i[0]] for (i, _) in merged] labels = [' & '.join(labels[j] for j in i) for (i, _) in merged] +vmin = min(min(min(v) for v in values), 0) +vmax = max(max(max(v) for v in values), 0) + if dim == 1: plot.ylabel('time') if len(values[0]) == 1: @@ -123,6 +126,8 @@ elif dim == 2: elif dim == 3: pass +plot.ylim((vmin * 1.1, vmax * 1.1)) + if not xkcdstyle: plot.grid(True) plot.show() |
