Fix: Performance by setting a maximum number of data points
This commit is contained in:
parent
040fb37ac1
commit
c7340639ff
@ -6,7 +6,11 @@ class Plot(pg.GraphicsLayoutWidget):
|
||||
"""
|
||||
pyqtgraph plot widget for showing voltage and LED vs time
|
||||
|
||||
To maintain performance, only a fixed number of data points is stored.
|
||||
Whenever this buffer size is reached, half of the data points are removed
|
||||
and some new data points are skipped to maintain a constant interval.
|
||||
|
||||
This means that accuracy is lost when zooming in!
|
||||
"""
|
||||
def __init__(self, max_data_points=1000):
|
||||
super().__init__()
|
||||
|
Loading…
x
Reference in New Issue
Block a user