def __init__(self, timeStamps=None, names=True, granularity=2, *args): QwtScaleDraw.__init__(self, *args) self.timeStamps = timeStamps self.fmtFull = '%H:%M:%S\n%Y-%m-%d' self.fmtTime = '%H:%M:%S' self.granularity = granularity self.names = names
def __init__(self, start_value=None, end_value=None, divisor=None): QwtScaleDraw.__init__(self) self.do_separator = True self.start_value = start_value self.end_value = end_value self.divisor = divisor if not self.start_value is None and not self.end_value is None: self.delta = self.end_value - self.start_value self.separator = self.end_value self.divisor = None else: self.separator = self.divisor self.delta = None self.start_value = None self.end_value = None
def __init__(self, baseTime, *args): QwtScaleDraw.__init__(self, *args) self.baseTime = baseTime
def __init__(self): QwtScaleDraw.__init__(self)