From 6d2eb09c6547b763f1ed0b0270aebff48e324d17 Mon Sep 17 00:00:00 2001 From: wendtalexander Date: Fri, 18 Oct 2024 16:46:33 +0200 Subject: [PATCH] [ui/plot] changing chunk size of the plot depending on the sampling rate --- pyrelacs/ui/plots/continously.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrelacs/ui/plots/continously.py b/pyrelacs/ui/plots/continously.py index 9d8b427..a1ad9c9 100644 --- a/pyrelacs/ui/plots/continously.py +++ b/pyrelacs/ui/plots/continously.py @@ -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)