Aluode/PerceptionLabPortable
0
1"""2Display a plot and an image with minimal setup. 3 4pg.plot() and pg.image() are indended to be used from an interactive prompt5to allow easy data inspection (but note that PySide unfortunately does not6call the Qt event loop while the interactive prompt is running, in this case7it is necessary to call QApplication.exec_() to make the windows appear).8"""9 10import numpy as np11 12import pyqtgraph as pg13 14data = np.random.normal(size=1000)15pg.plot(data, title="Simplest possible plotting example")16 17data = np.random.normal(size=(500,500))18pg.image(data, title="Simplest possible image example")19 20if __name__ == '__main__':21 pg.exec()22 