taurus taurus

Previous topic

taurus.qt.qtgui.plot

Next topic

CurveAppearanceProperties

This Page

ArrayEditor

Inheritance diagram of ArrayEditor

class ArrayEditor(parent=None)

Bases: PyQt4.QtGui.QWidget

changeCPointSelection(newpos)
connectToController(ctrl)
delController(index)
getCorrected()

returns x,c where x and c are numpy arrays representing the abcissas and ordinates for the corrected curve, respectively

getCorrection()

returns xp,cp where xp and cp are numpy arrays representing the abcissas and ordinates for the correction points, respectively

getMaster()

returns x,m where x and m are numpy arrays representing the abcissas and ordinates for the master, respectively

insertController(xp, index=None)
insertControllers(xplist)
loadUi(filename=None, path=None)
makeControllerVisible(ctrl=None)
onAddRegEspCPointsBT()
onAddSingleCPointBT()
onCorrSBChanged(value=None)

recalculates the position and value of the control points (self.xp and self.corrp) as well as the correction curve (self.corr)

onLCopy(checked)
onLScale(checked)
onRCopy(checked)
onRScale(checked)
plot1MouseDoubleClickEvent(event)
plot1MousePressEvent(event)
plot1MouseReleaseEvent(event)
plot2MouseDoubleClickEvent(event)
plot2MousePressEvent(event)
plot2MouseReleaseEvent(event)
plotMouseDoubleClickEvent(event, taurusplot)
plotMousePressEvent(event, taurusplot)
plotMouseReleaseEvent(event, taurusplot)
resetCorrection()
resetMaster()
setCorrection(xp=None, corrp=None)

sets control points at the points specified by xp and with the values specified by corrp. Example:

setCorrection([1,2,8,9], [0,0,0,0])

would set 4 control points with initial value 0 at x=1, 2, 8 and 9s

setMaster(x, y, keepCP=False, keepCorr=False)
showEditCPointsDialog()
updatePlots()