From 01c0582c729f572ef08659c99192e3682bc757fe Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Wed, 27 Jan 2016 16:10:11 +0000 Subject: [PATCH] Moved plt.show to end of module. --- tools/plot_builtin_wave.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/plot_builtin_wave.py b/tools/plot_builtin_wave.py index 8ec95172..bd5fb42b 100644 --- a/tools/plot_builtin_wave.py +++ b/tools/plot_builtin_wave.py @@ -124,8 +124,10 @@ else: ax1.set_ylabel('Amplitude') [ax.grid() for ax in fig.axes] # Turn on grid -plt.show() -# Save a PDF of the figure +# Save a PDF/PNG of the figure +#fig.savefig(os.path.dirname(os.path.abspath(__file__)) + os.sep + w.type + '.pdf', dpi=None, format='pdf', bbox_inches='tight', pad_inches=0.1) #fig.savefig(os.path.dirname(os.path.abspath(__file__)) + os.sep + w.type + '.png', dpi=150, format='png', bbox_inches='tight', pad_inches=0.1) +plt.show() +