Commit 85b28aaf authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

try fix shrinking x scale

parent 1d5a80ab
......@@ -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);
......
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