Skip to content

Commit 3d08405

Browse files
committed
Better number formatting.
1 parent 9531122 commit 3d08405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

histogrammar/primitives/bin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def ascii(self):
172172
ranges[i] = "[" + str(self.range(i))[1:]
173173
i += 1
174174

175-
printedValues = ["{0:<.2g}".format(v) for v in values]
175+
printedValues = ["{0:<.4g}".format(v) for v in values]
176176
printedValuesWidth = max(len(x) for x in printedValues)
177177
formatter = "{0:<14} {1:<%s} {2:<65}" % printedValuesWidth
178178

0 commit comments

Comments
 (0)