# HG changeset patch # User Jeff Hammel # Date 1428892043 25200 # Node ID dcedbe63d2c6f1f671d4861876a960449893df48 # Parent 279f5ae33564c3d21cb866bd184cc7d1dca18d1f bar charts now work diff -r 279f5ae33564 -r dcedbe63d2c6 numerics/bar.py --- 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()