Commit 9d5ca029 authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

fixes to time X scale and enabled wlen and wlen wei writings

parent f8034fd6
......@@ -98,13 +98,14 @@ void I0MMonPlot::onDataReady(const QList<CuData> &dl) {
const CuData &da = dl[0];
const std::vector<double> &ystdv = da["value"].toDoubleVector();
#if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
const QVector<double> xv;
QVector<double> xv;
foreach(int la, m_lambda_idxs)
xv.push_back(la);
xv << (la);
const QVector<double> yv = QVector<double>::fromStdVector(ystdv);
#else
const QVector<double> xv(m_lambda_idxs.begin(), m_lambda_idxs.end());
const QVector<double> xv(m_lambda_idxs.begin(), m_lambda_idxs.end());
const QVector<double> yv(ystdv.begin(), ystdv.end());
#endif
const QVector<double> yv(ystdv.begin(), ystdv.end());
// CuVariant ts = da["timestamp_ms"];
// ts.getType() == CuVariant::LongInt ? x = static_cast<qint64>(ts.toLongInt()) : x = ts.toDouble();
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