Originally Posted by
johnMick
I also wanted that my red squares will start from 0.5 and end with 1.5 ?
That's what they do, but you are setting the scales, so that half of the first square is cut off.
I guess this is your code:
#if 0
setAxisScale
( QwtPlot::xTop,
1.0,
7.0 );
setAxisScale
( QwtPlot::yLeft,
7.0,
1.0 );
#else
for ( int i
= 0; i <
QwtPlot::axisCnt; i
++ ) axisScaleEngine
( yLeft
)->setAttribute
( QwtScaleEngine::Inverted,
true );
#endif
#if 0
setAxisScale( QwtPlot::xTop, 1.0, 7.0 );
setAxisScale( QwtPlot::yLeft, 7.0, 1.0 );
#else
for ( int i = 0; i < QwtPlot::axisCnt; i++ )
axisScaleEngine( i )->setAttribute( QwtScaleEngine::Floating, true );
axisScaleEngine( yLeft )->setAttribute( QwtScaleEngine::Inverted, true );
#endif
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks