Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't draw properly sub scale divisions #17

Open
tachikoma opened this issue Jun 23, 2014 · 1 comment
Open

Can't draw properly sub scale divisions #17

tachikoma opened this issue Jun 23, 2014 · 1 comment

Comments

@tachikoma
Copy link

'drawScale:' only draw (main) scale divisions on some condition( min:0 ~ max:1 or max value is not multiple of 10, ex. 732)

i modify code that determine main or sub divisions. see below
....
int subDivs = (int)_scaleSubdivisions;
...
// Division
//if ((abs(mod - 0) < 0.000001) || (abs(mod - div) < 0.000001))
if(i == 0 || i == (totalTicks-1) || 0 == (i % subDivs) )
{

@jaytrixz
Copy link

I'm also having the same issue with subscale divisions specifically on scaleSubdivisions property. My setup is maxValue = 10.0, scaleDivisions = 8.0, scaleSubdivisions = 4.0. It ends up having may scaleDivisions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants