From 991651aab90f78e6ea6987527dc6ba75d360faa6 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Tue, 22 Mar 2016 18:04:30 +0000 Subject: [PATCH] Cleaned up use of filename input argument. --- tools/plot_Bscan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/plot_Bscan.py b/tools/plot_Bscan.py index d854bb5e..f668d5ee 100644 --- a/tools/plot_Bscan.py +++ b/tools/plot_Bscan.py @@ -68,8 +68,8 @@ for rx in range(1, nrx + 1): cb.set_label('Current [A]') # Save a PDF/PNG of the figure - #fig.savefig(os.path.splitext(os.path.abspath(file))[0] + '.pdf', dpi=None, format='pdf', bbox_inches='tight', pad_inches=0.1) - #fig.savefig(os.path.splitext(os.path.abspath(file))[0] + '.png', dpi=150, format='png', bbox_inches='tight', pad_inches=0.1) + #fig.savefig(os.path.splitext(os.path.abspath(args.outputfile))[0] + '.pdf', dpi=None, format='pdf', bbox_inches='tight', pad_inches=0.1) + #fig.savefig(os.path.splitext(os.path.abspath(args.outputfile))[0] + '.png', dpi=150, format='png', bbox_inches='tight', pad_inches=0.1) plt.show() f.close()