Changeset 5f23f66 for python/aubio/bench


Ignore:
Timestamp:
Sep 26, 2009, 1:42:52 AM (15 years ago)
Author:
Paul Brossier <piem@piem.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:
634d238
Parents:
55ed67a
Message:

python/aubio: use Gnuplot.Data with_ keywords, with is a reserved keyword in python 2.6 (debian #512622)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/bench/onset.py

    r55ed67a r5f23f66  
    112112                        gd.append(i['GD'])
    113113                        fp.append(i['FP'])
    114                 d.append(Gnuplot.Data(fp, gd, with='linespoints',
     114                d.append(Gnuplot.Data(fp, gd, with_='linespoints',
    115115                        title="%s %s" % (plottitle,i['mode']) ))
    116116
     
    148148                        x.append(i['prec'])
    149149                        y.append(i['recl'])
    150                 d.append(Gnuplot.Data(x, y, with='linespoints',
     150                d.append(Gnuplot.Data(x, y, with_='linespoints',
    151151                        title="%s %s" % (plottitle,i['mode']) ))
    152152
     
    173173                        x.append(i['thres'])
    174174                        y.append(i['dist'])
    175                 d.append(Gnuplot.Data(x, y, with='linespoints',
     175                d.append(Gnuplot.Data(x, y, with_='linespoints',
    176176                        title="%s %s" % (plottitle,i['mode']) ))
    177177
     
    206206                        x.append(i[var])
    207207                        y.append(i['dist'])
    208                 d.append(Gnuplot.Data(x, y, with='linespoints',
     208                d.append(Gnuplot.Data(x, y, with_='linespoints',
    209209                        title="%s %s" % (plottitle,i['mode']) ))
    210210       
     
    245245                for i in range(len(per)): per[i] /= total/100.
    246246
    247                 d.append(Gnuplot.Data(val, per, with='fsteps',
     247                d.append(Gnuplot.Data(val, per, with_='fsteps',
    248248                        title="%s %s" % (plottitle,v['mode']) ))
    249249                #d.append('mean=%f,sigma=%f,eps(x) title \"\"'% (mean,smean))
     
    276276                for i in range(len(per)): per[i] /= total/100.
    277277
    278                 d.append(Gnuplot.Data(val, per, with='fsteps',
     278                d.append(Gnuplot.Data(val, per, with_='fsteps',
    279279                        title="%s %s" % (plottitle,v['mode']) ))
    280280                #d.append('mean=%f,sigma=%f,eps(x) title \"\"'% (mean,smean))
Note: See TracChangeset for help on using the changeset viewer.