From e7f0b9850e4fb8341444a6a8ad93b39c7ff4c926 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Wed, 27 Jan 2016 16:09:43 +0000 Subject: [PATCH] Moved plt.show to end of module. --- tools/plot_antenna_params.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/plot_antenna_params.py b/tools/plot_antenna_params.py index 71ad92be..e2b3cecb 100644 --- a/tools/plot_antenna_params.py +++ b/tools/plot_antenna_params.py @@ -303,10 +303,10 @@ ax.set_ylabel('Phase [degrees]') #ax.set_ylim([-45, 45]) ax.grid() -plt.show() - # Save a PDF/PNG of the figure #fig1.savefig(os.path.splitext(os.path.abspath(file))[0] + '_tl_params.png', dpi=150, format='png', bbox_inches='tight', pad_inches=0.1) #fig2.savefig(os.path.splitext(os.path.abspath(file))[0] + '_ant_params.png', dpi=150, format='png', bbox_inches='tight', pad_inches=0.1) #fig1.savefig(os.path.splitext(os.path.abspath(file))[0] + '_tl_params.pdf', dpi=None, format='pdf', bbox_inches='tight', pad_inches=0.1) #fig2.savefig(os.path.splitext(os.path.abspath(file))[0] + '_ant_params.pdf', dpi=None, format='pdf', bbox_inches='tight', pad_inches=0.1) + +plt.show()