Hey,
I'm doing my first steps with qwt for a new project, but I have run in some little problems. I try to remove the space between the x-axis and the the plot so that the x-axis is located on the baseline. But I don't get it work. This is my current approach:
ui->qwt_Curve->plotLayout()->setAlignCanvasToScales(true);
ui
->qwt_Curve
->axisWidget
(QwtPlot::xBottom)->setMargin
(0);
ui
->qwt_Curve
->axisWidget
(QwtPlot::xBottom)->setSpacing
(0);
ui
->qwt_Curve
->axisWidget
(QwtPlot::xBottom)->scaleDraw
()->setMinimumExtent
(0);
ui
->qwt_Curve
->plotLayout
()->setCanvasMargin
(0,
QwtPlot::xBottom);
ui->qwt_Curve->plotLayout()->setAlignCanvasToScales(true);
ui->qwt_Curve->axisWidget(QwtPlot::xBottom)->setMargin(0);
ui->qwt_Curve->axisWidget(QwtPlot::xBottom)->setSpacing(0);
ui->qwt_Curve->axisWidget(QwtPlot::xBottom)->scaleDraw()->setMinimumExtent(0);
ui->qwt_Curve->plotLayout()->setCanvasMargin(0, QwtPlot::xBottom);
To copy to clipboard, switch view to plain text mode
Do you have any hints for me?
Thanks and best regards
Ozzy
Bookmarks