Changeset - 6a233b0c073b
[Not reviewed]
Hasan Yavuz Ă–ZDERYA - 9 years ago 2017-04-01 10:07:36
hy@ozderya.net
fix y axis scrollbar glitch at startup
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/plot.cpp
Show inline comments
 
@@ -116,24 +116,26 @@ void Plot::setXAxis(double xMin, double 
 
void Plot::resetAxes()
 
{
 
    // reset y axis
 
    if (isAutoScaled)
 
    {
 
        setAxisAutoScale(QwtPlot::yLeft);
 
    }
 
    else
 
    {
 
        setAxisScale(QwtPlot::yLeft, yMin, yMax);
 
    }
 

	
 
    zoomer.setZoomBase();
 

	
 
    replot();
 
}
 

	
 
void Plot::unzoomed()
 
{
 
    resetAxes();
 
    onXScaleChanged();
 
}
 

	
 
void Plot::showGrid(bool show)
 
{
 
    grid.enableX(show);
0 comments (0 inline, 0 general)