engelbeck
Joined: 25 Aug 2003 Posts: 4 Location: Puyallup, Wa
|
Posted: Mon Jan 04, 2010 7:00 pm Post subject: Algorithm for determining axis scaling |
|
|
What method are you using to automatically determine the scaling intervals and tick marks on your plot scales?
:?: _________________ Ranald M Engelbeck
Puyallup, Wa |
|
DPlotAdmin Site Admin
Joined: 24 Jun 2003 Posts: 2310 Location: Vicksburg, Mississippi
|
Posted: Tue Jan 05, 2010 10:15 am Post subject: |
|
|
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 |
|