using the Auto Scale works great, but there is affects other scales.
Let me elaborate it.
I am using
rescaler = new QwtPlotRescaler( myplot->canvas() );
rescaler
->setReferenceAxis
( QwtPlot::xBottom );
rescaler
->setAspectRatio
( QwtPlot::yLeft,
1.0 );
rescaler
->setAspectRatio
( QwtPlot::yRight,
0.0 );
rescaler
->setAspectRatio
( QwtPlot::xTop,
0.0 );
rescaler
->setAspectRatio
( QwtPlot::xBottom,
1.0 );
rescaler->setRescalePolicy( QwtPlotRescaler::Fixed );
rescaler = new QwtPlotRescaler( myplot->canvas() );
rescaler->setReferenceAxis( QwtPlot::xBottom );
rescaler->setAspectRatio( QwtPlot::yLeft, 1.0 );
rescaler->setAspectRatio( QwtPlot::yRight, 0.0 );
rescaler->setAspectRatio( QwtPlot::xTop, 0.0 );
rescaler->setAspectRatio( QwtPlot::xBottom, 1.0 );
rescaler->setRescalePolicy( QwtPlotRescaler::Fixed );
To copy to clipboard, switch view to plain text mode
this code to prevent the curve to be stretched and lose its real shape.
but when i use the AutoScale before i replot, the curve get stretched , where i have to zoom in and out so the rescaler works and the curve gets its "unstreached shape".
how can i fix this issue.
Thanks
Bookmarks