I am using pyqtgraph to try to plot a signal in real time. What the data looks likes:
- x/y axis are fixed (x axis runs from 0-3 seconds). - Data plotting is an incoming voltage timestream. I want the data to plot from left to right on the fixes x-axis, then restart at x=0 after 3 seconds (so the data will swipe from left to right repeatedly). - Currently I am using plotcurveitem.setData(data) to update the plot with each new sample. My understanding is that calling setData will clear and redraw the entire plot. However, every time I want the plot to redraw I only expect a small fraction of the array "data" to be changed (the updated data for the last N samples between plot redraws). Is there a way to keep data that is the same fro being redrawn? As is, redrawing an array with say 6000 samples is very cpu intensive when I would rather only redraw 10-20 new samples at a time to make it smoother. The best i could find is a discussion from 2012 <https://groups.google.com/g/pyqtgraph/c/2UZIDu98OTs>, but I am hoping that there might have been some improvement since then. -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/d63d8e95-07e8-4716-8126-f83538d5bf08n%40googlegroups.com.
