Closed tiagocoutinho closed 4 years ago
Confirmed. Needs investigation
Thanks for the quick reply @cpascual. Forgot to mention this is just something I noticed when "playing around" with the new gui I am writing.
The feature itself is not being used by my beamline. So for me you can mark it as low priority
Snippet to reproduce and debug
from taurus.qt.qtgui.application import TaurusApplication
from taurus_pyqtgraph import TaurusTrend
import sys
app = TaurusApplication(cmd_line_parser=None)
w = TaurusTrend()
w.setModel(["eval:2", "eval:3", "eval:[4,11]"])
w.getPlotItem().ctrl.averageGroup.setChecked(True)
w.show()
sys.exit(app.exec_())
And this one with pure pyqtgraph to better understand how the average works with params:
import pyqtgraph as pg
from pyqtgraph.Qt import QtGui
import numpy as np
app = QtGui.QApplication([])
p = pg.PlotWidget()
p.addLegend()
p.plot(y=1*np.ones(9), params={"a":"A"})
p.plot(y=2*np.ones(9), params={"b":"B"})
p.plot(y=6*np.ones(9), params={"c":"C"})
p.show()
p.getPlotItem().ctrl.averageGroup.setChecked(True)
app.exec_()
tested with:
On a trend, I right click Plot options > Average > Average checkbox I get on the console: