From 8e4b7c498fa220bfd7d3591b1b2414d03a0e7f9c Mon Sep 17 00:00:00 2001 From: Giacomo Strangolino <giacomo.strangolino@elettra.eu> Date: Fri, 8 Apr 2022 10:42:59 +0200 Subject: [PATCH] scaled version of the attributes --- src/i0mapmontopoobjfilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i0mapmontopoobjfilter.cpp b/src/i0mapmontopoobjfilter.cpp index 8c31f73..14e00ca 100644 --- a/src/i0mapmontopoobjfilter.cpp +++ b/src/i0mapmontopoobjfilter.cpp @@ -41,7 +41,7 @@ bool I0MapMonObjFilter::eventFilter(QObject *watched, QEvent *event) { QString ys; double xsum = bchart->baseline(); for(int j = 0; j < values.size(); j++) { - ys += QString("λ %1: %2").arg(j+1).arg(values[j]) + "\n"; + ys += QString("λ %1: %2").arg(j+1).arg((values[j] > -1e-3 ? QString::number(values[j]) : "INVALID")) + "\n"; if(stacked) xsum += values[j]; else if(fabs(values[j]) > xsum) xsum = values[j]; } -- GitLab