11 m_graphs =
new TMultiGraph();
13 TGraph* tmpGrph = getGraph<T>(a_wfYs);
14 int lineColor = m_lineColors.at(m_currentColor%m_lineColors.size());
15 tmpGrph->SetLineColor(lineColor);
17 m_graphs->Add(tmpGrph);
22 std::vector<double> xs;
23 std::vector<double> ys;
24 xs.reserve(a_wfYs.size());
25 ys.reserve(a_wfYs.size());
26 for(
size_t iP = 0;iP < a_wfYs.size();iP++)
29 ys.push_back(a_wfYs[iP]);
31 TGraph* tmpGrph =
new TGraph(xs.size(),&xs[0],&ys[0]);
TGraph * getGraph(std::vector< T > a_wfYs)
Definition: WFPlotter.hpp:20
void addGraph(std::vector< T > a_wfYs)
adds the supplied vector to the graph
Definition: WFPlotter.hpp:7