bf
This commit is contained in:
parent
ccf1e1bb0b
commit
27f6d97cd4
@ -371,10 +371,10 @@ def main():
|
|||||||
|
|
||||||
init_fig = False
|
init_fig = False
|
||||||
else:
|
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]
|
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:
|
||||||
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.axs[ch].set_ylim(ylim)
|
||||||
Plot.fig.canvas.draw()
|
Plot.fig.canvas.draw()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user