We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49e66b6 commit a810d6cCopy full SHA for a810d6c
imgs/hist.png
-1.27 KB
plotille.py
@@ -64,11 +64,11 @@ def _scale(a):
64
for i in range(bins):
65
hight = int(width * 8 * _scale(h[i]) / h_max)
66
canvas += ['{:10.5f} | {:{width}s} {}'.format(
67
- b[i],
+ (b[i] + b[i+1]) / 2, # use bucket center as representation
68
'⣿' * (hight // 8) + lasts[hight % 8],
69
h[i],
70
width=width)]
71
- canvas += ['{:10.5f} | {}'.format(b[bins], '‾' * width)]
+ canvas += ['‾' * (10 + 3 + width + 12)]
72
return linesep.join(canvas)
73
74
0 commit comments