def __init__(self,
timeSpan=30.0,
yMin=-1.0,
yMax=1.0,
yOriginValue=0.0,
xTickInterval=5.0,
yTickInterval=0.2,
labelFont=QFont("Segoe UI", 10),
refreshRate=0.1,
**kwds):
# validate inputs
assert timeSpan > 0.0
self._timeSpan = timeSpan
self._lastUpdate = time.time()
self._refreshRate = refreshRate
self._refreshTimer = QTimer()
self._refreshTimer.timeout.connect(self._refresh_plots)
self._refreshTimer.start(self._refreshRate * 1000.0)
super(QPlot2DTime, self).__init__(
xMin=timeSpan,
xMax=0.0,
yMin=yMin,
yMax=yMax,
xOriginValue=0.0,
yOriginValue=yOriginValue,
xTickInterval=xTickInterval,
yTickInterval=yTickInterval,
labelFont=labelFont,
**kwds)
# P U B L I C M E T H O D S
#===========================================================================
评论列表
文章目录