Beispiel #1
0
 def _dp_plot_default(self, parameter):
     plot = Plot(self.dp_data)
     for pt in ('scatter', 'line'):
         plot.plot(('f2_level', 'f1_spl'), type=pt, color='red')
         plot.plot(('f2_level', 'f2_spl'), type=pt, color='crimson')
         plot.plot(('f2_level', 'dpoae_spl'), type=pt, color='black')
         plot.plot(('f2_level', 'dp_spl'), type=pt, color='darkblue')
         plot.plot(('f2_level', 'dpoae_nf'), type=pt, color='gray')
         plot.plot(('f2_level', 'dp_nf'), type=pt, color='lightblue')
     plot.underlays = []
     axis = PlotAxis(orientation='bottom', component=plot,
                     title='f2 level (dB SPL)')
     plot.underlays.append(axis)
     axis = PlotAxis(orientation='left', component=plot,
                     title='DPOAE level (dB SPL)')
     plot.underlays.append(axis)
     grid = PlotGrid(mapper=plot.index_mapper, component=plot,
                     orientation='vertical', line_style='dot',
                     line_color='lightgray')
     plot.underlays.append(grid)
     grid = PlotGrid(mapper=plot.value_mapper, component=plot,
                     orientation='horizontal', line_style='dot',
                     line_color='lightgray')
     plot.underlays.append(grid)
     return _DPPlot(plot=plot, parameter=parameter)
Beispiel #2
0
 def _dpoae_spectrum_plot_default(self):
     plot = Plot(self.tf_data)
     plot.plot(('frequency', 'spectrum'), type='line', color='black',
               index_scale='log')
     plot.underlays = []
     axis = PlotAxis(orientation='bottom', component=plot,
                     title='Frequency (Hz)')
     plot.underlays.append(axis)
     axis = PlotAxis(orientation='left', component=plot,
                     title='Exp. mic. (dB re 1mV)')
     plot.underlays.append(axis)
     grid = PlotGrid(mapper=plot.index_mapper, component=plot,
                     orientation='vertical', line_style='dot',
                     line_color='lightgray')
     plot.underlays.append(grid)
     grid = PlotGrid(mapper=plot.value_mapper, component=plot,
                     orientation='horizontal', line_style='dot',
                     line_color='lightgray')
     plot.underlays.append(grid)
     return plot
Beispiel #3
0
 def _overview_time_plot_default(self):
     plot = Plot(self.tf_data, padding=0, spacing=0)
     plot.plot(('time', 'average_waveform'), type='line', color='black')
     plot.underlays = []
     axis = PlotAxis(orientation='bottom', component=plot,
                     tick_label_formatter=lambda x: "{:.2f}".format(x*1e3),
                     title='Time (msec)')
     plot.underlays.append(axis)
     axis = PlotAxis(orientation='left', component=plot,
                     title='Exp. mic. (mV)')
     plot.underlays.append(axis)
     grid = PlotGrid(mapper=plot.index_mapper, component=plot,
                     orientation='vertical', line_style='dot',
                     line_color='lightgray')
     plot.underlays.append(grid)
     grid = PlotGrid(mapper=plot.value_mapper, component=plot,
                     orientation='horizontal', line_style='dot',
                     line_color='lightgray')
     plot.underlays.append(grid)
     return plot