# !/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

[((227, 249), 'PyQt5.QtWidgets.QApplication', 'QApplication', (['sys.argv'], {}), '(sys.argv)\n', (239, 249), False, 'from PyQt5.QtWidgets import QApplication\n'), ((254, 269), 'numpy.arange', 'np.arange', (['(1000)'], {}), '(1000)\n', (263, 269), True, 'import numpy as np\n'), ((274, 306), 'numpy.random.normal', 'np.random.normal', ([], {'size': '(3, 1000)'}), '(size=(3, 1000))\n', (290, 306), True, 'import numpy as np\n'), ((320, 354), 'pyqtgraph.plot', 'pg.plot', ([], {'title': '"""Three plot curves"""'}), "(title='Three plot curves')\n", (327, 354), True, 'import pyqtgraph as pg\n'), ((437, 453), 'sys.exit', 'sys.exit', (['status'], {}), '(status)\n', (445, 453), False, 'import sys\n')]