From f941ad291e1bf249e27ee1a9514e76ddc0ec32fe Mon Sep 17 00:00:00 2001 From: John Glover Date: Tue, 2 Nov 2010 16:11:00 +0000 Subject: Added colour to default plots (with heatmap) and some minor code tidying --- examples/plotpeaks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/plotpeaks.py') diff --git a/examples/plotpeaks.py b/examples/plotpeaks.py index 0132ba6..1c5769f 100644 --- a/examples/plotpeaks.py +++ b/examples/plotpeaks.py @@ -15,7 +15,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import simpl -import simpl.plot +import matplotlib.pyplot as plt from scipy.io.wavfile import read input_file = '../tests/audio/flute.wav' @@ -31,4 +31,5 @@ pd.max_peaks = 20 peaks = pd.find_peaks(audio) # plot peaks using matplotlib simpl.plot.plot_peaks(peaks) -simpl.plot.show() +plt.show() + -- cgit v1.2.3