I'm running some basic code from the documentation import pyqtgraph as pg import numpy as np x = np.arange(1000) y = np.random.normal(size=(3, 1000)) plotWidget = pg.plot(title="Three plot curves") for i in range(3): plotWidget.plot(x, y, pen=(i,3)) But for some reason the window open then closes straight away, i just see a flicker of it. Is there some sort of function in which i can keep the window open? Continue reading...