From a9f2091b17c5dda6d79ad21f0c101cb6d78488eb Mon Sep 17 00:00:00 2001
From: Giacomo Strangolino <giacomo.strangolino@elettra.eu>
Date: Mon, 27 Sep 2021 14:58:54 +0200
Subject: [PATCH] fix: lambda curve color and style linked to lambda 1,2,3...
 number

---
 i0mapmon.pro       | 2 +-
 src/i0mmonplot.cpp | 5 -----
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/i0mapmon.pro b/i0mapmon.pro
index 2ad1bd0..95c6279 100644
--- a/i0mapmon.pro
+++ b/i0mapmon.pro
@@ -5,7 +5,7 @@ include($${CUMBIA_ROOT}/include/quapps/quapps.pri)
 
 CONFIG += debug
 
-DEFINES -= QT_NO_DEBUG_OUTPUT
+# DEFINES -= QT_NO_DEBUG_OUTPUT
 
 # RESOURCES +=
 
diff --git a/src/i0mmonplot.cpp b/src/i0mmonplot.cpp
index bc4eecc..8a0892b 100644
--- a/src/i0mmonplot.cpp
+++ b/src/i0mmonplot.cpp
@@ -75,7 +75,6 @@ bool I0MMonPlot::yAutoScale() const {
 }
 void I0MMonPlot::setSources(const QString &x, const QString &y, const QMap<int, double> lambdamap, int nsamples)
 {
-    qDebug() << __PRETTY_FUNCTION__ << lambdamap;
     m_multiread_plu_i->unsetSources();
     foreach(const QString& cn, m_curvesymap.keys())
         removeCurve(cn);
@@ -100,7 +99,6 @@ void I0MMonPlot::setSources(const QString &x, const QString &y, const QMap<int,
         }
         m_curvesymap[cuna] = m_symstyles[(lambdai-1) % m_symstyles.size()];
     }
-    qDebug() << __PRETTY_FUNCTION__ << "settings sources: x " <<  x << " y " << y  << "time mode" << m_time_mode;
     if(m_time_mode) {
         if(m_multiread_plu_i)
             m_multiread_plu_i->insertSource(y, 0);
@@ -114,9 +112,6 @@ void I0MMonPlot::setSources(const QString &x, const QString &y, const QMap<int,
         }
     }
     updateLegend();
-    printf("I0MMonPlot::setSources curvesSize %d\n", curves().size());
-    foreach(QwtPlotCurve *c, curves())
-        printf("- %s\n", qstoc(c->title().text()));
 }
 
 void I0MMonPlot::setYBounds(double ymi, double yma) {
-- 
GitLab