changeset 113:f9900883db2e

hook it up and break it down
author Jeff Hammel <k0scist@gmail.com>
date Sun, 15 Mar 2015 16:28:42 -0700
parents 7578313b9fbf
children 8b5fba91dac5
files numerics/bar.py
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/numerics/bar.py	Sun Mar 15 16:23:33 2015 -0700
+++ b/numerics/bar.py	Sun Mar 15 16:28:42 2015 -0700
@@ -19,7 +19,7 @@
 
 __all__ = ['bar_chart', 'BarChartParser', 'main']
 
-def bar_chart(data, output, title=None):
+def bar_chart(data, output):
     """create a bar chart"""
 
     bar = Bar(data, tools="pan,wheel_zoom,box_zoom,reset,resize")
@@ -49,11 +49,13 @@
     # process data
     data = parser.typed_data()
 
-    # parse file
-#    data = pd.read_csv(options.input, header=None, names=options.columns, index_col=0)
+    # generate bar chart
+    bar_chart(data, options.output)
 
-    # generate bar chart
-#    bar_chart(data, options.output, title=options.title or options.input.name)
+# BBB keeping this around for reference;
+# we should probably move to a better parsing system at some point
+# parse file
+#    data = pd.read_csv(options.input, header=None, names=options.columns, index_col=0)
 
 if __name__ == '__main__':
     main()