I wrote setData function like that:
QVector<double> x(100), y(100);
customPlot->addGraph();
customPlot->graph(0)->setData(x, y);
first question: Is QCPGraph::setData ( QCPDataMap * data, bool copy = false ) function faster than QCPGraph::QCPGraph ( QCPAxis * keyAxis, QCPAxis * valueAxis ) if copy is false ?
second question: how can I use my vectors with QCPGraph::setData ( QCPDataMap * data, bool copy = false )
thank you.