libzahl

big integer library
git clone git://git.suckless.org/libzahl
Log | Files | Refs | README | LICENSE

commit 48a2d06dc7b9dbde36d3979a019457b3d6fc188d
parent c374cf03e18caf36d3046cfbeee64a61d1b9526c
Author: Mattias Andrée <maandree@kth.se>
Date:   Mon,  2 May 2016 15:47:33 +0200

plot: adjust y-axis

Signed-off-by: Mattias Andrée <maandree@kth.se>

Diffstat:
Mbench/plot.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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()