diff --git a/src/plotmanager.cpp b/src/plotmanager.cpp --- a/src/plotmanager.cpp +++ b/src/plotmanager.cpp @@ -276,7 +276,9 @@ void PlotManager::_addCurve(QwtPlotCurve curves.append(curve); unsigned index = curves.size()-1; - curve->setPen(Plot::makeColor(index)); + auto color = _infoModel->index(index, ChannelInfoModel::COLUMN_NAME)\ + .data(Qt::ForegroundRole).value(); + curve->setPen(color); // create the plot for the curve if we are on multi display Plot* plot;