# !/usr/bin/env python3
# -*- coding:utf-8 -*-

# @Datetime : 2019/11/14 上午2:26
# @Author   : Fangyang
# @Software : PyCharm

import sys
from PyQt5.QtWidgets import QApplication
import pyqtgraph as pg
import numpy as np

app = QApplication(sys.argv)
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[i], pen=(i, 3))

status = app.exec_()
sys.exit(status)

if __name__ == '__main__':
    pass

[(13, 'PyQt5.QtWidgets.QApplication', 'QApplication', False, 'from PyQt5.QtWidgets import QApplication\n'), (14, 'numpy.arange', 'np.arange', True, 'import numpy as np\n'), (15, 'numpy.random.normal', 'np.random.normal', True, 'import numpy as np\n'), (16, 'pyqtgraph.plot', 'pg.plot', True, 'import pyqtgraph as pg\n'), (21, 'sys.exit', 'sys.exit', False, 'import sys\n')]