I would add that this line of code is highly inefficient since a new array of 
increasing size is created at each update:
xdata = np.array(data, dtype='float64')

I would allocate a large array at initialization, and if required increase its 
size using numpy.ndarray.resize with a strategy avoiding to do it too 
frequently.

Marc

-- 
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/8689f39f-b9d5-490e-947d-e7476a96cf25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to