changeset 149:dcedbe63d2c6

bar charts now work
author Jeff Hammel <k0scist@gmail.com>
date Sun, 12 Apr 2015 19:27:23 -0700
parents 279f5ae33564
children 8a1fe454c98a
files numerics/bar.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/numerics/bar.py	Sun Apr 12 19:22:33 2015 -0700
+++ b/numerics/bar.py	Sun Apr 12 19:27:23 2015 -0700
@@ -87,6 +87,10 @@
     # generate bar chart
     options.output.write(bar_chart(data, parser.plot_filename(), title=options.title))
 
+    if options.output != sys.stdout:
+        # print URL of file
+        print ('file://{}'.format(os.path.abspath(options.output.name)))
+
 
 if __name__ == '__main__':
     main()