setAxisTitle(QwtPlot::xBottom, "Frequency (Hz)");
setAxisScaleEngine(QwtPlot::yLeft, new QwtLinearScaleEngine);
- setAxisScale(QwtPlot::yLeft, -210, 5);
+ set_yaxis(-210, 5);
setAxisTitle(QwtPlot::yLeft, "Power (dB)");
// Automatically deleted when parent is deleted
// _zoomer and _panner deleted when parent deleted
}
+void
+FrequencyDisplayPlot::set_yaxis(double min, double max)
+{
+ setAxisScale(QwtPlot::yLeft, min, max);
+}
+
void
FrequencyDisplayPlot::SetFrequencyRange(const double constStartFreq,
const double constStopFreq,