The zoomer is not the API for setting the scales - it is an object intended for user interactions !
myPlot_>setAxisScale(
QwtPlot::xBottom, topleft.
x(), bottomright.
x() );
myPlot->setAxisScale(
QwtPlot::yLeft, topleft.
y(), bottomright
().
y() );
// or v.v. myPlot->replot();
// If you really want to have one reinitialize
// the zoomer with the current scales
m_zoomer->setZoomBase( false );
myPlot_>setAxisScale(
QwtPlot::xBottom, topleft.x(), bottomright.x() );
myPlot->setAxisScale(
QwtPlot::yLeft, topleft.y(), bottomright().y() ); // or v.v.
myPlot->replot();
// If you really want to have one reinitialize
// the zoomer with the current scales
m_zoomer->setZoomBase( false );
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks