From 67e16c2fb94aabd402cdef365ef6393373170773 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 10 May 2016 19:35:29 +0200 Subject: [PATCH] python/demos/demo_spectrogram.py: fix indent --- python/demos/demo_spectrogram.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/python/demos/demo_spectrogram.py b/python/demos/demo_spectrogram.py index 29cf2557..40de0770 100755 --- a/python/demos/demo_spectrogram.py +++ b/python/demos/demo_spectrogram.py @@ -66,12 +66,12 @@ def get_spectrogram(filename, samplerate = 0): if __name__ == '__main__': if len(sys.argv) < 2: print "Usage: %s " % sys.argv[0] - else: - for soundfile in sys.argv[1:]: - fig = get_spectrogram(soundfile) - # display graph - fig.show() - #outimage = os.path.basename(soundfile) + '.png' - #print ("writing: " + outimage) - #plt.savefig(outimage) - plt.close() + else: + for soundfile in sys.argv[1:]: + fig = get_spectrogram(soundfile) + # display graph + fig.show() + #outimage = os.path.basename(soundfile) + '.png' + #print ("writing: " + outimage) + #plt.savefig(outimage) + plt.close() -- 2.11.0