import pyqtgraph as pg import numpy as np x = np.arange(0, 10, 0.1) y = np.sin(x) pg.plot(x, y, pen='r') pg.QtGui.QApplication.exec_()