Changeset 5f23f66 for python/aubio
- Timestamp:
- Sep 26, 2009, 1:42:52 AM (15 years ago)
- 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
- Location:
- python/aubio
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubio/bench/onset.py
r55ed67a r5f23f66 112 112 gd.append(i['GD']) 113 113 fp.append(i['FP']) 114 d.append(Gnuplot.Data(fp, gd, with ='linespoints',114 d.append(Gnuplot.Data(fp, gd, with_='linespoints', 115 115 title="%s %s" % (plottitle,i['mode']) )) 116 116 … … 148 148 x.append(i['prec']) 149 149 y.append(i['recl']) 150 d.append(Gnuplot.Data(x, y, with ='linespoints',150 d.append(Gnuplot.Data(x, y, with_='linespoints', 151 151 title="%s %s" % (plottitle,i['mode']) )) 152 152 … … 173 173 x.append(i['thres']) 174 174 y.append(i['dist']) 175 d.append(Gnuplot.Data(x, y, with ='linespoints',175 d.append(Gnuplot.Data(x, y, with_='linespoints', 176 176 title="%s %s" % (plottitle,i['mode']) )) 177 177 … … 206 206 x.append(i[var]) 207 207 y.append(i['dist']) 208 d.append(Gnuplot.Data(x, y, with ='linespoints',208 d.append(Gnuplot.Data(x, y, with_='linespoints', 209 209 title="%s %s" % (plottitle,i['mode']) )) 210 210 … … 245 245 for i in range(len(per)): per[i] /= total/100. 246 246 247 d.append(Gnuplot.Data(val, per, with ='fsteps',247 d.append(Gnuplot.Data(val, per, with_='fsteps', 248 248 title="%s %s" % (plottitle,v['mode']) )) 249 249 #d.append('mean=%f,sigma=%f,eps(x) title \"\"'% (mean,smean)) … … 276 276 for i in range(len(per)): per[i] /= total/100. 277 277 278 d.append(Gnuplot.Data(val, per, with ='fsteps',278 d.append(Gnuplot.Data(val, per, with_='fsteps', 279 279 title="%s %s" % (plottitle,v['mode']) )) 280 280 #d.append('mean=%f,sigma=%f,eps(x) title \"\"'% (mean,smean)) -
python/aubio/plot/notes.py
r55ed67a r5f23f66 52 52 x_widths, # x errors 53 53 __notesheight*ones(len(la)), # y errors 54 title=plot_title,with =('boxxyerrorbars fs 3')))54 title=plot_title,with_=('boxxyerrorbars fs 3'))) 55 55 return d 56 56 … … 67 67 x_widths, # x errors 68 68 __notesheight*ones(len(la)-1), # y errors 69 title=plot_title,with =('boxxyerrorbars fs 3')))69 title=plot_title,with_=('boxxyerrorbars fs 3'))) 70 70 return d 71 71 -
python/aubio/task/beat.py
r55ed67a r5f23f66 248 248 def plot(self,oplots,results): 249 249 import Gnuplot 250 oplots.append(Gnuplot.Data(results,with ='linespoints',title="auto"))250 oplots.append(Gnuplot.Data(results,with_='linespoints',title="auto")) 251 251 252 252 def plotplot(self,wplot,oplots,outplot=None,extension=None,xsize=1.,ysize=1.,spectro=False): … … 259 259 260 260 g = gnuplot_create(outplot=outplot, extension=extension) 261 oplots = [Gnuplot.Data(self.gettruth(),with ='linespoints',title="orig")] + oplots261 oplots = [Gnuplot.Data(self.gettruth(),with_='linespoints',title="orig")] + oplots 262 262 g.plot(*oplots) -
python/aubio/task/notes.py
r55ed67a r5f23f66 95 95 import Gnuplot 96 96 97 oplots.append(Gnuplot.Data(now,freq,with ='lines',97 oplots.append(Gnuplot.Data(now,freq,with_='lines', 98 98 title=self.params.pitchmode)) 99 oplots.append(Gnuplot.Data(now,ifreq,with ='lines',99 oplots.append(Gnuplot.Data(now,ifreq,with_='lines', 100 100 title=self.params.pitchmode)) 101 101 … … 103 103 for i in onset: 104 104 temponsets.append(i*1000) 105 oplots.append(Gnuplot.Data(now,temponsets,with ='impulses',105 oplots.append(Gnuplot.Data(now,temponsets,with_='impulses', 106 106 title=self.params.pitchmode)) 107 107 … … 117 117 #timet,pitcht = self.gettruth() 118 118 #if timet and pitcht: 119 # oplots = [Gnuplot.Data(timet,pitcht,with ='lines',119 # oplots = [Gnuplot.Data(timet,pitcht,with_='lines', 120 120 # title='ground truth')] + oplots 121 121 122 t = Gnuplot.Data(0,0,with ='impulses')122 t = Gnuplot.Data(0,0,with_='impulses') 123 123 124 124 g = gnuplot_init(outplot) -
python/aubio/task/onset.py
r55ed67a r5f23f66 93 93 import aubio.txtfile 94 94 import os.path 95 95 from numpy import arange, array, ones 96 96 from aubio.onsetcompare import onset_roc 97 97 … … 104 104 # onset detection function 105 105 downtime = arange(len(ofunc))*self.params.step 106 oplot.append(Gnuplot.Data(downtime,ofunc,with ='lines',title=self.params.onsetmode))106 oplot.append(Gnuplot.Data(downtime,ofunc,with_='lines',title=self.params.onsetmode)) 107 107 108 108 # detected onsets … … 115 115 #y1 = self.maxofunc*ones(len(onsets)) 116 116 if x1: 117 oplot.append(Gnuplot.Data(x1,y1,with ='impulses'))118 wplot.append(Gnuplot.Data(x1,y1p,with ='impulses'))117 oplot.append(Gnuplot.Data(x1,y1,with_='impulses')) 118 wplot.append(Gnuplot.Data(x1,y1p,with_='impulses')) 119 119 120 120 oplots.append((oplot,self.params.onsetmode,self.maxofunc)) … … 129 129 x2 = array(t_onsets).resize(len(t_onsets)) 130 130 y2 = self.maxofunc*ones(len(t_onsets)) 131 wplot.append(Gnuplot.Data(x2,y2,with ='impulses'))131 wplot.append(Gnuplot.Data(x2,y2,with_='impulses')) 132 132 133 133 tol = 0.050 -
python/aubio/task/pitch.py
r55ed67a r5f23f66 157 157 time = [ (i+self.params.pitchdelay)*self.params.step for i in range(len(pitch)) ] 158 158 pitch = [aubio_freqtomidi(i) for i in pitch] 159 oplots.append(Gnuplot.Data(time,pitch,with ='lines',159 oplots.append(Gnuplot.Data(time,pitch,with_='lines', 160 160 title=self.params.pitchmode)) 161 161 titles.append(self.params.pitchmode) … … 171 171 timet,pitcht = self.gettruth() 172 172 if timet and pitcht: 173 oplots = [Gnuplot.Data(timet,pitcht,with ='lines',173 oplots = [Gnuplot.Data(timet,pitcht,with_='lines', 174 174 title='ground truth')] + oplots 175 175
Note: See TracChangeset
for help on using the changeset viewer.