
Originally Posted by
bigjoeystud
My own program has an issue where I would like to set the step size to a certain number, but want it to keep the plot to a more reasonable size and maybe display only a few of the labels. What is the best way to accomplish this?
Sound like you want to set your step size as minor step size.
F.e. if you want to have a step size of 1 and tick labels every 10 ticks:
plot->setAxisMaxMinor( 10 );
plot->setAxisScale( min, max, 10.0 );
plot->setAxisMaxMinor( 10 );
plot->setAxisScale( min, max, 10.0 );
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks