changeset 98:f6d885adb3d7

STUB: numerics/histogram.py numerics/text_display.py
author Jeff Hammel <k0scist@gmail.com>
date Tue, 03 Mar 2015 20:23:34 -0800
parents 8ed00f2a3e8a
children 570ceafeb670
files numerics/histogram.py numerics/text_display.py
diffstat 2 files changed, 8 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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.: '█'
       }