[ui/plot] changing chunk size of the plot depending on the sampling rate

This commit is contained in:
wendtalexander 2024-10-18 16:46:33 +02:00
parent 4029034174
commit 6d2eb09c65

View File

@ -36,7 +36,7 @@ class Continously:
# self.plot_index = 0
self.timer = QTimer()
self.CHUNK_PLOT = 500
self.CHUNK_PLOT = int(self.buffer.samplerate / 6)
self.PLOT_HISTORY = 500_000 # The amount of data you want to keep on screen
self.last_plotted_index = 0
self.timer.setInterval(150)