Changeset 7538ac5


Ignore:
Timestamp:
Mar 2, 2006, 7:40:45 PM (18 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
1944aaf
Parents:
1e3089c
Message:

remove useless multiple plot and title to plot_spec
remove useless multiple plot and title to plot_spec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/gnuplot.py

    r1e3089c r7538ac5  
    107107        return data,time,freq
    108108
    109 def plot_spec(filenames, outplot='',extension='', fileout=None, start=0, end=None, noaxis=None,log=1):
     109def plot_spec(filename, outplot='',extension='', fileout=None, start=0, end=None, noaxis=None,log=1):
    110110        import Gnuplot
    111111        g = gnuplot_create(outplot,extension)
    112         todraw = len(filenames)
     112        data,time,freq = audio_to_spec(filename)
    113113        xorig = 0.
    114         xsize = 1./todraw
    115         data,time,freq = audio_to_spec(filenames.pop(0))
    116                
    117         if not noaxis and todraw==1:
     114        xsize = 1.#/todraw
     115        if not noaxis:
    118116                g.xlabel('Time (s)')
    119117                g.ylabel('Frequency (Hz)')
     
    127125                g.gnuplot('set log y')
    128126        g.splot(Gnuplot.GridData(data,time,freq, binary=1))
    129         xorig += 1./todraw
     127        #xorig += 1./todraw
    130128
    131129def downsample_audio(time,data,maxpoints=10000):
     
    174172        g('set terminal %s' % extension)
    175173        if outplot != "stdout":
    176                 g('set output \'roc-%s%s\'' % (outplot,ext))
     174                g('set output \'%s%s\'' % (outplot,ext))
    177175        return g
Note: See TracChangeset for help on using the changeset viewer.