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

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

parent 80c81681
......@@ -97,7 +97,13 @@ 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;
foreach(int la, m_lambda_idxs)
xv.push_back(la);
#else
const QVector<double> xv(m_lambda_idxs.begin(), m_lambda_idxs.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();
......@@ -124,7 +130,6 @@ void I0MMonPlot::setSources(const QString &x, const QString &y, const QList<int>
m_lambda_idxs = lambda_idxs;
m_reset_scales();
if(x == "time") {
// m_set_x_trend_scale();
foreach(int l, lambda_idxs) {
QString cuna = QString("lambda %1").arg(l);
QuPlotCurve *crv = curve(cuna);
......
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