On Tue, Sep 23, 2008 at 5:56 AM, rfwatson <[EMAIL PROTECTED]> wrote: > Hello, > > I am using matplotlib in combination with QT4 as part of an audio > application I am building. Part of this involves plotting an > oscilloscope-style display (time vs intensity) for sets of raw audio data, > which I have through necessity converted to arrays of floating point data. > > The problem I have is that Pylab/QT slow down an unacceptable amount once > the amount of audio is more than a few seconds long. This is not too > surprising - typically a minute of stereo audio data will have 44100 * 60 * > 2 = 5292000 points. I need to deal with, at minimum, 15 minute clips > efficiently
Do you typically plot a large number of points, only a subset of which are in your viewport? If so, the "clipped line" demo may be useful to you: http://matplotlib.sourceforge.net/examples/pylab_examples/clippedline.py If you are trying to plot a large number of dense points all in the same viewport, then you will need to decimate the data before plotting. JDH ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users