From 6faeb841a0cc452b9e94b3e9c36ab93623128475 Mon Sep 17 00:00:00 2001 From: Grissess Date: Thu, 9 Jun 2016 21:57:51 -0400 Subject: Minor changes --- shiv.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shiv.py') diff --git a/shiv.py b/shiv.py index 8444a72..0a8169e 100644 --- a/shiv.py +++ b/shiv.py @@ -71,13 +71,13 @@ def show_hist(values, height=None): miny, maxy = min(ys), max(ys) xv = range(minx, maxx + 1) incs = max((maxy - miny) / height, 1) - print COL.BLUE + '\t --' + '-' * len(xv) + COL.NONE + print COL.CYAN + '\t --' + '-' * len(xv) + COL.NONE for ub in range(maxy + incs, miny, -incs): - print '{}{}\t | {}{}{}'.format(COL.BLUE, ub, COL.YELLOW, ''.join(['#' if values.get(x) > (ub - incs) else ' ' for x in xv]), COL.NONE) - print COL.BLUE + '\t |-' + '-' * len(xv) + COL.NONE + print '{}{}\t | {}{}{}'.format(COL.CYAN, ub, COL.YELLOW, ''.join(['#' if values.get(x) > (ub - incs) else ' ' for x in xv]), COL.NONE) + print COL.CYAN + '\t |-' + '-' * len(xv) + COL.NONE xvs = map(str, xv) for i in range(max(map(len, xvs))): - print COL.BLUE + '\t ' + ''.join([s[i] if len(s) > i else ' ' for s in xvs]) + COL.NONE + print COL.CYAN + '\t ' + ''.join([s[i] if len(s) > i else ' ' for s in xvs]) + COL.NONE print xcs = map(str, [values.get(x, 0) for x in xv]) for i in range(max(map(len, xcs))): -- cgit v1.2.3-70-g09d2