Instead of:
this->axisScaleDraw(axis1)->setScaleDiv(scdiv);
this->axisScaleDraw(axis1)->setScaleDiv(scdiv);
To copy to clipboard, switch view to plain text mode
do
this->setAxisScaleDiv( axis1, scldiv );
this->setAxisScaleDiv( axis1, scldiv );
To copy to clipboard, switch view to plain text mode
The upper way of assigning the ticks is behind the back of the plot and will have a temporary effect only - until the next call of replot ( or updateAxes() ). The second way is known to the plot and also disables autoscaling.
Uwe
Bookmarks