This commit is contained in:
tillraab 2019-10-01 16:00:32 +02:00
parent ccf1e1bb0b
commit 27f6d97cd4

View File

@ -371,10 +371,10 @@ def main():
init_fig = False
else:
yspan = [np.min(channel_data[power_channel]), np.max(channel_data[power_channel])]
yspan = [np.min(channel_data[power_channel]) / 1000, np.max(channel_data[power_channel])/ 1000]
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]))
Plot.channel_handle[ch].set_data(np.arange(250)[:len(channel_data[ch])] / rate, np.array(channel_data[ch]) / 1000)
Plot.axs[ch].set_ylim(ylim)
Plot.fig.canvas.draw()