Hi there,
I would like to have (or rather my boss wants it) a QwtPlot where the ticks of the scales point inwards while the labels stay outside like normal. So for the left yAxis it would be (left to right): label backbone ticks.
If I use
plot.axisScaleDraw(QwtPlot::yLeft)->setAlignment(QwtScaleDraw::RightScale);
To copy to clipboard, switch view to plain text mode
the labels will end up inside the plot area (ie. backbone ticks labels).
I have been thinking about using
yLeft->attach(&plot);
yLeft->setPosition(-1);
QwtPlotScaleItem *yLeft = new QwtPlotScaleItem(QwtScaleDraw::RightScale);
yLeft->attach(&plot);
yLeft->setPosition(-1);
To copy to clipboard, switch view to plain text mode
and having basically two scales, but I dont understand how to "attach" it to the left border of the plotarea.
Thanks a lot
Simon
Bookmarks