# HG changeset patch # User Jeff Hammel # Date 1425443014 28800 # Node ID f6d885adb3d7708e07d12b8e0e14c5f933a2539b # Parent 8ed00f2a3e8ae91b5827322f0b8c4e3c993505e3 STUB: numerics/histogram.py numerics/text_display.py diff -r 8ed00f2a3e8a -r f6d885adb3d7 numerics/histogram.py --- a/numerics/histogram.py Tue Mar 03 20:19:00 2015 -0800 +++ b/numerics/histogram.py Tue Mar 03 20:23:34 2015 -0800 @@ -3,19 +3,6 @@ """ Histograms - -Unicode is awesome; see http://www.alanwood.net/unicode/block_elements.html -""" - -blocks = """ -█ -▉ -▊ -▋ -▌ -▍ -▎ -▏ """ # imports diff -r 8ed00f2a3e8a -r f6d885adb3d7 numerics/text_display.py --- a/numerics/text_display.py Tue Mar 03 20:19:00 2015 -0800 +++ b/numerics/text_display.py Tue Mar 03 20:23:34 2015 -0800 @@ -11,8 +11,15 @@ # module globals __all__ = ['main', 'frac', 'FracParser'] +# Unicode is awesome; see http://www.alanwood.net/unicode/block_elements.html blocks = {0.: '', - 0.125: None, # TODO + 0.125: '▏', + 0.25: None, # TODO, + 0.375: None, + 0.5: None, + 0.625: None, + 0.75: None, + 0.875: None, 1.: '█' }