Commit c8775fc2 authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

fixes to curves

parent 3f0791f2
......@@ -95,15 +95,12 @@ void I0MMonPlot::onDataReady(const QList<CuData> &dl) {
const CuData &da = dl[0];
const std::vector<double> &ystdv = da["value"].toDoubleVector();
QList<double> lambdas = m_lambdas.values();
std::sort(lambdas.begin(), lambdas.end());
const QVector<double> xv = lambdas.toVector();
#if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
QVector<double> xv;
foreach(int la, m_lambda_idxs)
xv << (la);
const QVector<double> yv = QVector<double>::fromStdVector(ystdv);
#else
QList<double> lambdas = m_lambdas.values();
std::sort(lambdas.begin(), lambdas.end());
const QVector<double> xv = lambdas.toVector();
const QVector<double> yv(ystdv.begin(), ystdv.end());
#endif
printf("\e[0;33mdata %s -- timestamp %f\e[0m\n", datos(da), x);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment