From 85b28aaf46398fb1445e57c04a56988f7f8dd5dc Mon Sep 17 00:00:00 2001
From: Giacomo Strangolino <giacomo.strangolino@elettra.eu>
Date: Wed, 7 Jul 2021 15:59:25 +0200
Subject: [PATCH] try fix shrinking x scale

---
 src/i0mmtopobarchart.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/i0mmtopobarchart.cpp b/src/i0mmtopobarchart.cpp
index dac6d87..5fb10ad 100644
--- a/src/i0mmtopobarchart.cpp
+++ b/src/i0mmtopobarchart.cpp
@@ -135,7 +135,7 @@ void I0MMTopoBarChart::update(const QList<CuData> &dl) {
     m_error(error); // show or hide error message
     m_cur_data = dl; // save data
     const double d = m_max - m_min;
-    m_min = m_min - d * 0.01; m_max = m_max + d * 0.01;
+//    m_min = m_min - d * 0.01; m_max = m_max + d * 0.01;
     if(m_min <= 0 && m_barchart->baseline() > 0) m_min= 0.01; // log scale
     if(axisScaleDiv(QwtPlot::xBottom).lowerBound() != m_min || axisScaleDiv(QwtPlot::xBottom).upperBound() != m_max)
         setAxisScale(QwtPlot::xBottom, m_min, m_max);
-- 
GitLab