@@ -379,24 +379,34 @@ void PlotManager::_addCurve(QwtPlotCurve
dispChannels = _stream->allChannels();
}
plot->setDispChannels(dispChannels);
// show the curve
curve->attach(plot);
plot->replot();
void PlotManager::removeCurves(unsigned number)
{
if (_stream != nullptr) // not displaying snapshot
if (! isMulti)
QVector<const StreamChannel*> dispChannels;
plotWidgets[0]->setDispChannels(dispChannels);
for (unsigned i = 0; i < number; i++)
if (!curves.isEmpty())
delete curves.takeLast();
if (isMulti) // delete corresponding widget as well
delete plotWidgets.takeLast();
Status change: