Hi all!

I have the data stream I would like to plot immediately in pyqtgraph, here 
is an MWE:

%gui qt

import numpy as np
import pyqtgraph as pg
from time import sleep

win = pg.GraphicsWindow()
qplt = win.addPlot()
curve = qplt.plot()


for i in range(8):
    sleep(.5)
    curve.setData(np.random.random(size=16))

but it only updates the plot window once the cell calculation is complete. 
How to force an update and a redraw?

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/2a43177a-96b0-436a-ba57-f011d0e687be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to