python import pyqtgraph as pg from PyQt5.QtWidgets import QApplication app = QApplication([]) win = pg.GraphicsWindow() win.setWindowTitle('PyQtGraph Line Plot') plot = win.addPlot(title='Line Plot') x = [1, 2, 3, 4, 5] y = [1, 3, 2, 4, 5] plot.plot(x, y) app.exec_()


上一篇:
下一篇:
切换中文