From 3cde6299ad6efdb6d662039e3ee556f95b85f5c4 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 13 Mar 2013 13:24:02 -0500 Subject: [PATCH] python/demos/demo_tempo_plot.py: import first --- python/demos/demo_tempo_plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/demos/demo_tempo_plot.py b/python/demos/demo_tempo_plot.py index dd1cd9b1..15be6daf 100755 --- a/python/demos/demo_tempo_plot.py +++ b/python/demos/demo_tempo_plot.py @@ -44,11 +44,11 @@ beats = map( lambda x: x / float(samplerate), beats) bpms = [60./(b - a) for a,b in zip(beats[:-1],beats[1:])] if len(bpms): - print 'mean period:', "%.2f" % mean(bpms), 'bpm', 'median', "%.2f" % median(bpms), 'bpm' - print 'plotting', filename # do plotting from numpy import array, arange, mean, median import matplotlib.pyplot as plt + print 'mean period:', "%.2f" % mean(bpms), 'bpm', 'median', "%.2f" % median(bpms), 'bpm' + print 'plotting', filename plt1 = plt.axes([0.1, 0.75, 0.8, 0.19]) plt2 = plt.axes([0.1, 0.1, 0.8, 0.65], sharex = plt1) plt.rc('lines',linewidth='.8') -- 2.26.2