On Monday, 30 June 2014 12:42:58 UTC+2, Luke Campagnola wrote: > > On Mon, Jun 30, 2014 at 1:39 AM, Federico BolaƱos <[email protected]> > wrote: > >> Problem is... that sometimes it samples more times in one run and thus >> there are left over points from the last sweep. Also, the fact that I have >> to initialize the numpy array with 2000 zeroes and that causes a line to >> show up joining the point (0, 0) with the latest point... >> >
You just need to keep track of which samples in the buffer are valid and > avoid plotting invalid samples. > Hello everyone, I stumbled across this old thread while trying to solve the problem of plotting a time series with missing/invalid data with pyqtgraph. My current solution involves invalid data indicators and creation of a new CurveItem for each bit of consecutive valid data, but the implementation is rather complex. @Luke Is there a way within pyqtgraph to plot one single CurveItem with missing data (e.g. np.nan values) and have the curve _not_ connect the two valid points, like described by Frederico? -- 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/cb1c238e-dcef-436c-a1fa-59ff0ce8ded3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
