Changes in python/demos/demo_pitch.py [c54b2c0:4f2c28c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_pitch.py
rc54b2c0 r4f2c28c 57 57 58 58 fig = plt.figure() 59 59 60 ax1 = fig.add_subplot(311) 60 61 ax1 = get_waveform_plot(filename, samplerate = samplerate, block_size = hop_s, ax = ax1) 61 ax1.set_xticklabels([]) 62 plt.setp(ax1.get_xticklabels(), visible = False) 63 ax1.set_xlabel('') 62 64 63 65 def array_from_text_file(filename, dtype = 'float'): … … 88 90 #ax2.axis( ymin = 0.9 * cleaned_pitches.min(), ymax = 1.1 * cleaned_pitches.max() ) 89 91 #ax2.axis( ymin = 55, ymax = 70 ) 90 ax2.set_xticklabels([]) 92 plt.setp(ax2.get_xticklabels(), visible = False) 93 ax2.set_ylabel('f0 (Hz)') 91 94 92 95 # plot confidence … … 97 100 ax3.plot(times, [tolerance]*len(confidences)) 98 101 ax3.axis( xmin = times[0], xmax = times[-1]) 102 ax3.set_ylabel('condidence') 103 set_xlabels_sample2time(ax3, times[-1], samplerate) 99 104 plt.show() 100 set_xlabels_sample2time(ax3, times[-1], samplerate) 101 #plt.savefig(os.path.basename(filename) + '.png', dpi=200) 105 #plt.savefig(os.path.basename(filename) + '.svg')
Note: See TracChangeset
for help on using the changeset viewer.