bf
This commit is contained in:
parent
41e80e4016
commit
349785996d
@ -359,11 +359,11 @@ def main():
|
|||||||
power_channel = int(np.argmax(channel_std))
|
power_channel = int(np.argmax(channel_std))
|
||||||
|
|
||||||
if init_fig == True:
|
if init_fig == True:
|
||||||
yspan = (np.min(channel_data[power_channel]), np.max(channel_data[power_channel]))
|
yspan = (np.min(channel_data[power_channel]) / gain, np.max(channel_data[power_channel]) / gain)
|
||||||
ylim = (yspan[0] - np.abs(np.diff(yspan)) * 0.2, yspan[1] + np.abs(np.diff(yspan))* 0.2)
|
ylim = (yspan[0] - np.abs(np.diff(yspan)) * 0.2, yspan[1] + np.abs(np.diff(yspan))* 0.2)
|
||||||
|
|
||||||
for ch in channel_array:
|
for ch in channel_array:
|
||||||
h, = Plot.axs[ch].plot(np.arange(250)[:len(channel_data[ch])] / rate, np.array(channel_data[ch]), color='k')
|
h, = Plot.axs[ch].plot(np.arange(250)[:len(channel_data[ch])] / rate, np.array(channel_data[ch]) / gain, color='k')
|
||||||
Plot.axs[ch].set_ylim(ylim)
|
Plot.axs[ch].set_ylim(ylim)
|
||||||
Plot.channel_handle.append(h)
|
Plot.channel_handle.append(h)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user