From 349785996d06cc04e94d2ae42483e91801f5144b Mon Sep 17 00:00:00 2001 From: tillraab Date: Tue, 1 Oct 2019 16:05:02 +0200 Subject: [PATCH] bf --- electrode_check.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/electrode_check.py b/electrode_check.py index 7d61b0d..cc8b417 100644 --- a/electrode_check.py +++ b/electrode_check.py @@ -359,11 +359,11 @@ def main(): power_channel = int(np.argmax(channel_std)) 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) 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.channel_handle.append(h) @@ -371,7 +371,7 @@ def main(): init_fig = False else: - yspan = [np.min(channel_data[power_channel]) / gain, np.max(channel_data[power_channel])/ gain] + 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] for ch in channel_array: Plot.channel_handle[ch].set_data(np.arange(250)[:len(channel_data[ch])] / rate, np.array(channel_data[ch]) / gain)