Some diagnostic.
I realized that if I delete this code
void OptimumPlot::alignScales()
{
// The code below shows how to align the scales to
// the canvas frame, but is also a good example demonstrating
// why the spreaded API needs polishing.
canvas()->setLineWidth(1);
for ( int i
= 0; i <
QwtPlot::axisCnt; i
++ ) {
if ( scaleWidget )
scaleWidget->setMargin(0);
if ( scaleDraw )
}
}
void OptimumPlot::alignScales()
{
// The code below shows how to align the scales to
// the canvas frame, but is also a good example demonstrating
// why the spreaded API needs polishing.
canvas()->setFrameStyle(QFrame::Box | QFrame::Plain );
canvas()->setLineWidth(1);
for ( int i = 0; i < QwtPlot::axisCnt; i++ )
{
QwtScaleWidget *scaleWidget = (QwtScaleWidget *)axisWidget(i);
if ( scaleWidget )
scaleWidget->setMargin(0);
QwtScaleDraw *scaleDraw = (QwtScaleDraw *)axisScaleDraw(i);
if ( scaleDraw )
scaleDraw->enableComponent(QwtAbstractScaleDraw::Backbone, false);
}
}
To copy to clipboard, switch view to plain text mode
which was suggested by the "bode" example
all wors (the print is correct) but I could not get the scale aligned.
Any help?
Bookmarks