OK, so now I have managed to get the scale that I wanted and the custom labels at the ticks where I want them using:
ui->myPlot->setAxisScaleDiv(0,scdiv);
So apparently there is nothing wrong with my scaleDiv. However, this doesn't solve my problem since I want aoutoscaling but with custom labels.
I might as well describe exactly what I'm after since it's a pretty basic concept:
I want autoscaling as usual but I want the major ticks (with labels) placed only and always at -20,-10,0,10,20,30 and so on and a minor tick (with no label) in between every major.
I assume I've missed something in the basic functionality of the QwtPlotGrid since it won't display my custom grid without the same fixed, custom scale...
Peace!
/Tottish
EDIT: Hey! And while we're at it, could someone tell me how to change the color of the font in the scales?
Bookmarks