Ok, fixed this adding following code after curve data change(thanks to adjascent topic on scrolling plot):
double max= curve1->maxYValue(),min = curve1->minYValue();
if(curve2->maxYValue() > curve1->maxYValue()) max = curve2->maxYValue();
if(curve2->minYValue() < curve1->minYValue()) min = curve2->minYValue();
setAxisScale
(QwtPlot::yLeft,min,max,
0);
double max= curve1->maxYValue(),min = curve1->minYValue();
if(curve2->maxYValue() > curve1->maxYValue()) max = curve2->maxYValue();
if(curve2->minYValue() < curve1->minYValue()) min = curve2->minYValue();
setAxisScale(QwtPlot::yLeft,min,max,0);
To copy to clipboard, switch view to plain text mode
Still don't get why this scale is not updated automatically.
Bookmarks