Sets the current threshold

        :param threshold: the y value to set the threshold line at
        :type threshold: float

def setThreshold(self, threshold):
        """Sets the current threshold

        :param threshold: the y value to set the threshold line at
        :type threshold: float
        """
        self.threshLine.setValue(threshold)
        self.threshold_field.setValue(threshold)