So by wiggling you mean, that the y axis is changing at the beginning of your test ?
This is an effect of having the autoscaler being enabled. It can be avoided by setting a fixed scale:
plot
->setAxisScale
( QwtPlot::yLeft,
-1,
1 );
plot->setAxisScale( QwtPlot::yLeft, -1, 1 );
To copy to clipboard, switch view to plain text mode
If you need autoscaling you could at least do:
void YourScaleEngine::autoScale( int maxNumSteps,
double &x1, double &x2, double &stepSize ) const
{
x1 = qMin( x1, -1 );
x2 = qMax( x2, 1 );
}
void YourScaleEngine::autoScale( int maxNumSteps,
double &x1, double &x2, double &stepSize ) const
{
x1 = qMin( x1, -1 );
x2 = qMax( x2, 1 );
QwtLinearScaleEngine::autoScale( maxNumSteps, x1, x2, stepSize );
}
To copy to clipboard, switch view to plain text mode
Bookmarks