2012-03-17 15:47:20 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2013-02-25 04:09:03 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
Description of example
|
|
|
|
|
|
|
|
|
|
|
|
"""
|
2012-03-17 15:47:20 +00:00
|
|
|
import initExample ## Add path to library (just for examples; you do not need this)
|
|
|
|
|
|
|
|
import pyqtgraph as pg
|
2021-01-27 18:42:38 +00:00
|
|
|
from pyqtgraph.Qt import QtCore, QtGui
|
2012-03-17 15:47:20 +00:00
|
|
|
import numpy as np
|
|
|
|
|
2021-01-27 18:42:38 +00:00
|
|
|
app = QtGui.QApplication([])
|
2015-01-16 16:21:33 +00:00
|
|
|
|
2013-02-25 04:09:03 +00:00
|
|
|
# win.setWindowTitle('pyqtgraph example: ____')
|
|
|
|
|
2012-03-17 15:47:20 +00:00
|
|
|
## Start Qt event loop unless running in interactive mode or using pyside.
|
2012-12-05 05:25:45 +00:00
|
|
|
if __name__ == '__main__':
|
|
|
|
import sys
|
|
|
|
if (sys.flags.interactive != 1) or not hasattr(QtCore, 'PYQT_VERSION'):
|
|
|
|
QtGui.QApplication.instance().exec_()
|