setAxisScale(yAxis, 0, 100, 20);
setAxisAutoScale(xAxis);
enableAxis(yAxis, true);
yAxis_scaleDraw
->enableComponent
(QwtScaleDraw::Backbone,
false);
yAxis_scaleDraw
->enableComponent
(QwtScaleDraw::Ticks,
false);
xAxis_scaleDraw
->enableComponent
(QwtScaleDraw::Backbone,
false);
xAxis_scaleDraw
->enableComponent
(QwtScaleDraw::Ticks,
false);
xAxis_scaleDraw
->enableComponent
(QwtScaleDraw::Labels,
false);
plotLayout()->setCanvasMargin(0);
plotLayout
()->setCanvasMargin
(20,
QwtPlot::yLeft);
plotLayout
()->setCanvasMargin
(20,
QwtPlot::yRight);
QwtPlot::Axis yAxis = QwtPlot::yLeft,
xAxis = QwtPlot::xBottom;
setAxisScale(yAxis, 0, 100, 20);
setAxisAutoScale(xAxis);
enableAxis(yAxis, true);
QwtScaleDraw *yAxis_scaleDraw = axisScaleDraw(yAxis);
yAxis_scaleDraw->enableComponent(QwtScaleDraw::Backbone, false);
yAxis_scaleDraw->enableComponent(QwtScaleDraw::Ticks, false);
QwtScaleDraw *xAxis_scaleDraw = axisScaleDraw(xAxis);
xAxis_scaleDraw->enableComponent(QwtScaleDraw::Backbone, false);
xAxis_scaleDraw->enableComponent(QwtScaleDraw::Ticks, false);
xAxis_scaleDraw->enableComponent(QwtScaleDraw::Labels, false);
plotLayout()->setCanvasMargin(0);
plotLayout()->setCanvasMargin(20, QwtPlot::yLeft);
plotLayout()->setCanvasMargin(20, QwtPlot::yRight);
To copy to clipboard, switch view to plain text mode
Bookmarks