DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Algorithm for determining axis scaling

 
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions
View previous topic :: View next topic  
Author Message
engelbeck



Joined: 25 Aug 2003
Posts: 4
Location: Puyallup, Wa

PostPosted: Mon Jan 04, 2010 7:00 pm    Post subject: Algorithm for determining axis scaling Reply with quote

What method are you using to automatically determine the scaling intervals and tick marks on your plot scales?

:?:
_________________
Ranald M Engelbeck
Puyallup, Wa
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Tue Jan 05, 2010 10:15 am    Post subject: Reply with quote

Abbreviated version for linear scales: If the default "Auto-tick marks" is checked, then for the X axis DPlot finds a tick mark interval that is a multiple of 1, 1.5, 2, 2.5, 3, 4, 5, 6, or 8 times a power of 10 and results in ~10 intervals, and forces the extents to be multiples of that interval. It then looks for an interval on the Y axis that gives roughly the same physical distance between tick marks as is used on the X axis (but not less than 5 nor more than 20 intervals).

If "Specify interval" is checked... well, looking just now I see it is doing something a bit unexpected. Whether you check "Specify extents" or not, DPlot doesn't round the current extents to multiples of the tick interval. Though this was no doubt done at a user's request, I don't think I like this. If "Specify extents" isn't checked then I'd think a more reasonable thing to do would be to set the extents to a multiple of the interval. I'll have to think on this one a bit.

If "Specify number" (of tick marks) is checked then DPlot does what I think you'd expect: it finds an interval that is, again, a multiple of 1, 1.5, 2, 2.5, 3, 4, 5, 6, or 8 times a power of 10 and forces the extents to be a multiple of that interval.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group