- Timestamp:
- Sep 4, 2005, 5:49:08 PM (19 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:
- bfe76d4
- Parents:
- 3c86eb1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubio/gnuplot.py
r3c86eb1 r77671b4 242 242 for i in range(len(pitch)): 243 243 downtime = (hopsize/samplerate)*numarray.arange(len(pitch[i])) 244 d.append(Gnuplot.Data(downtime,pitch[i],with='lines')) 244 d.append(Gnuplot.Data(downtime,pitch[i],with='lines', 245 title=('%d' % i))) 245 246 maxpitch = max(maxpitch,max(pitch[i][:])*1.1) 246 247 … … 252 253 else: 253 254 title = "truth file plotting not implemented yet" 254 t = Gnuplot.Data(0,0,with='impulses') 255 #times,pitch = aubio.txtfile.read_datafile(datafile) 256 #t = Gnuplot.Data(times,pitch,with='lines') 255 values = aubio.txtfile.read_datafile(datafile) 256 time, pitch = [], [] 257 for i in range(len(values)): 258 time.append(values[i][0]) 259 pitch.append(values[i][1]) 260 d.append(Gnuplot.Data(time,pitch,with='lines',title='ground truth')) 257 261 258 262 #orig, missed, merged, expc, bad, doubled = \ … … 301 305 g('set xrange [0:%f]' % max(time)) 302 306 g('set yrange [40:%f]' % maxpitch) 307 g('set key right top') 303 308 g.xlabel('time') 304 309 g.ylabel('frequency (Hz)')
Note: See TracChangeset
for help on using the changeset viewer.