Qt Code:
plot->replot();To copy to clipboard, switch view to plain text mode
or
UweQt Code:
To copy to clipboard, switch view to plain text mode
Qt Code:
plot->replot();To copy to clipboard, switch view to plain text mode
or
UweQt Code:
To copy to clipboard, switch view to plain text mode
thanks Uwe,
this exactlly what i need... but the second way when i use the boundingRect for the curve,
The method
is not exist.Qt Code:
To copy to clipboard, switch view to plain text mode
Is it in a new version of qwt ?
No, of course it is: QwtPlot::setAxisScale.
Uwe
jesse_mark (12th November 2012)
using the Auto Scale works great, but there is affects other scales.
Let me elaborate it.
I am using
Qt Code:
rescaler = new QwtPlotRescaler( myplot->canvas() ); 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