MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / curveColors

Method curveColors

pj_plotting/widget/src/PlotWidgetBase.cpp:284–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284std::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
294PlotWidgetBase::CurveInfo* PlotWidgetBase::curveFromTitle(const QString& title) {
295 for (auto& info : plot_->curve_list) {

Callers 1

openFilterEditorMethod · 0.80

Calls 3

insertMethod · 0.45
colorMethod · 0.45
penMethod · 0.45

Tested by

no test coverage detected