I spent just about enough time on this one. Now I need some help.
I need to calculate tic mark values for a y axis of an x,y graph given Min/Max Values.
The Tic Mark values should be a power of 10.
Example #1: Given a MinVal of -12.56 and a Max Value of 4567 the MinTic Mark will be -1000 and the MaxTic Mark is 5000.
Example #2: MinVal -4567 MaxVal 7.7 -> MinTic Mark = -5000 and MaxTic Mark = 1000
Example #3: MinVal -.756 MaxVal .789 -> MinTic -1 MaxTic 1.
The Min/Max Values may be anything in the range of doubles.
Thank You.
James
I need to calculate tic mark values for a y axis of an x,y graph given Min/Max Values.
The Tic Mark values should be a power of 10.
Example #1: Given a MinVal of -12.56 and a Max Value of 4567 the MinTic Mark will be -1000 and the MaxTic Mark is 5000.
Example #2: MinVal -4567 MaxVal 7.7 -> MinTic Mark = -5000 and MaxTic Mark = 1000
Example #3: MinVal -.756 MaxVal .789 -> MinTic -1 MaxTic 1.
The Min/Max Values may be anything in the range of doubles.
Thank You.
James
Comment