Ejemplo n.º 1
0
 def show3dB(self, freq):
     label = "-3 dB at f = %.3g" % freq
     text = Qwt.QwtText(label)
     text.setFont(QFont("Helvetica", 10, QFont.Bold))
     text.setColor(Qt.green)
     self.d_marker1.setValue(freq, 0.0)
     self.d_marker1.setLabel(text)
Ejemplo n.º 2
0
 def showPeak(self, freq, amplitude):
     label = "Peak: %.3g dB" % amplitude
     text = Qwt.QwtText(label)
     text.setFont(QFont("Helvetica", 10, QFont.Bold))
     text.setColor(QColor(200, 150, 0))
     self.d_marker2.setValue(freq, amplitude)
     self.d_marker2.setLabel(text)