| 282 | } |
| 283 | |
| 284 | std::map<QString, QColor> PlotWidgetBase::curveColors() const { |
| 285 | std::map<QString, QColor> colors; |
| 286 | for (const auto& info : plot_->curve_list) { |
| 287 | // Key by source_name (the catalog key), not the display title, so consumers can |
| 288 | // match against CurveDescriptor::name. |
| 289 | colors.insert({info.source_name, info.curve->pen().color()}); |
| 290 | } |
| 291 | return colors; |
| 292 | } |
| 293 | |
| 294 | PlotWidgetBase::CurveInfo* PlotWidgetBase::curveFromTitle(const QString& title) { |
| 295 | for (auto& info : plot_->curve_list) { |
no test coverage detected