Changeset - 598710c96de1
[Not reviewed]
Hasan Yavuz Ă–ZDERYA - 9 years ago 2017-04-01 08:56:32
hy@ozderya.net
this pice of code was disabled because we don't use auto scale for x-axis anymore
1 file changed with 0 insertions and 8 deletions:
0 comments (0 inline, 0 general)
src/plot.cpp
Show inline comments
 
@@ -121,25 +121,24 @@ void Plot::resetAxes()
 
        setAxisAutoScale(QwtPlot::yLeft);
 
    }
 
    else
 
    {
 
        setAxisScale(QwtPlot::yLeft, yMin, yMax);
 
    }
 

	
 
    replot();
 
}
 

	
 
void Plot::unzoomed()
 
{
 
    // setAxisAutoScale(QwtPlot::xBottom);
 
    resetAxes();
 
    onXScaleChanged();
 
}
 

	
 
void Plot::showGrid(bool show)
 
{
 
    grid.enableX(show);
 
    grid.enableY(show);
 
    replot();
 
}
 

	
 
void Plot::showMinorGrid(bool show)
 
@@ -291,20 +290,13 @@ void Plot::updateSymbols()
 
}
 

	
 
void Plot::resizeEvent(QResizeEvent * event)
 
{
 
    QwtPlot::resizeEvent(event);
 
    onXScaleChanged();
 
}
 

	
 
void Plot::onNumOfSamplesChanged(unsigned value)
 
{
 
    numOfSamples = value;
 
    onXScaleChanged();
 

	
 
    // TODO: what to do with this?
 

	
 
    // auto currentBase = zoomer.zoomBase();
 
    // currentBase.setWidth(value);
 
    // zoomer.setZoomBase(currentBase);
 
    // onXScaleChanged();
 
}
0 comments (0 inline, 0 general)