changeset 165:d5f93606f402

minor fixes
author Jeff Hammel <k0scist@gmail.com>
date Mon, 18 May 2015 15:59:20 -0700
parents c16940bd2cee
children dc9976d895a1
files numerics/plot.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/numerics/plot.py	Fri May 15 16:59:09 2015 -0700
+++ b/numerics/plot.py	Mon May 18 15:59:20 2015 -0700
@@ -22,6 +22,7 @@
 import os
 import sys
 from .manipulate import ManipulationParser
+from StringIO import StringIO
 
 # module globals
 __all__ = ['Plot', 'PlotParser', 'read', 'main']
@@ -139,7 +140,7 @@
     # save plot
     if options.output:
         plt.savefig(options.output)
-        print ("Figure saved to file://{}".format(os.path.abspath(options.output)))
+        print ("Figure saved to file://{}".format(os.path.abspath(options.output.name)))
 
     # display plot, I guess
     plt.show()