ref: 3cde6299ad6efdb6d662039e3ee556f95b85f5c4
parent: 20b1aed9f4dc400e850b913c58d7436b5c6b1ebf
author: Paul Brossier <piem@piem.org>
date: Wed Mar 13 09:24:02 EDT 2013
python/demos/demo_tempo_plot.py: import first
--- a/python/demos/demo_tempo_plot.py
+++ b/python/demos/demo_tempo_plot.py
@@ -44,11 +44,11 @@
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')