Esempio n. 1
0
 def set_item_parameters(self, itemparams):
     """Set the item parameters, required for the GUI display of the
     measurement parameters."""
     update_dataset(self.measurement,
                    itemparams.get("MeasurementParameter"),
                    visible_only=True)
     CurveItem.set_item_parameters(self, itemparams)
Esempio n. 2
0
 def __init__(self, measurement=None):
     """\arg measurement a Measurement object storing data and scanning
     parameter.
     """
     self.__baseclass__ = ThothCurveItem
     self.measurement = Measurement()
     param = CurveParam(_("Line"), icon='curve.png')
     param.line.style = "SolidLine"
     param.line.width = 2.0
     CurveItem.__init__(self, param)
     if measurement is not None:
         self.set_measurement(measurement)
Esempio n. 3
0
 def get_item_parameters(self, itemparams):
     """Return the item parameters, required for the GUI display of the
     measurement parameters."""
     CurveItem.get_item_parameters(self, itemparams)
     itemparams.add("MeasurementParameter", self, self.measurement)