from pyqtgraph.Qt import QtGui, QtCore import pyqtgraph as pg import numpy as np data = np.random.normal(size=1000) #print data pg.plot(data) # data can be a list of values or a numpy array if __name__ == '__main__': import sys if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'): QtGui.QApplication.instance().exec_()
更多參考資訊
* http://www.pyqtgraph.org/documentation/how_to_use.html
* https://wiki.qt.io/PySide
沒有留言:
張貼留言