From: Paul Brossier Date: Tue, 10 May 2016 17:35:29 +0000 (+0200) Subject: python/demos/demo_spectrogram.py: fix indent X-Git-Tag: 0.4.4~300^2~106 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=67e16c2fb94aabd402cdef365ef6393373170773;p=aubio.git python/demos/demo_spectrogram.py: fix indent --- 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()