Hi Uwe,
I have tried the plotLayout()->setAlignCanvasToScales. Here is my code:
ui->qwtPlot->plotLayout()->setAlignCanvasToScales(false);
ui->qwtPlot->plotLayout()->setCanvasMargin(50, -1);
ui->qwtPlot->plotLayout()->setAlignCanvasToScales(false);
ui->qwtPlot->plotLayout()->setCanvasMargin(50, -1);
To copy to clipboard, switch view to plain text mode
I got this:

the length of the scale backbone has been shorted.
What i really want is to make the scale backbone skinner. The reason is that the screen what i am running my application is only 4.3". I need get more space to display the chart. Therefore, i want to save some scale backbone space (even a little bit) to my chart. I wish the scale backbone will be looks like:

Is that possible to achieve? Thanks for your help.
Bookmarks