Slightly faster plotting due to data being already sorted.

monitor
Elliott Liggett 2022-08-17 19:58:04 -07:00
rodzic 03a279087e
commit 123084c779
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -3592,7 +3592,7 @@ void wfmain::receiveSpectrumData(QByteArray spectrum, double startFreq, double e
if(!spectrumDrawLock)
{
//ui->qcp->addGraph();
plot->graph(0)->setData(x,y);
plot->graph(0)->setData(x,y, true);
if((freq.MHzDouble < endFreq) && (freq.MHzDouble > startFreq))
{
freqIndicatorLine->start->setCoords(freq.MHzDouble,0);
@ -3600,12 +3600,12 @@ void wfmain::receiveSpectrumData(QByteArray spectrum, double startFreq, double e
}
if(underlayMode == underlayPeakHold)
{
plot->graph(1)->setData(x,y2); // peaks
plot->graph(1)->setData(x,y2, true); // peaks
} else if (underlayMode != underlayNone) {
computePlasma();
plot->graph(1)->setData(x,spectrumPlasmaLine);
} else {
plot->graph(1)->setData(x,y2); // peaks, but probably cleared out
plot->graph(1)->setData(x,y2, true); // peaks, but probably cleared out
}
plot->yAxis->setRange(plotFloor, plotCeiling);