Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#490 closed enhancement (fixed)

prefer tick spacing as [1|2|5] x 10^N

Reported by: Peter Johansson Owned by: Peter Johansson
Priority: minor Milestone: svndigest 0.10
Component: output Version: trunk
Keywords: Cc:

Description

The current algorithm for tick spacing sets the spacing to

a x 10N where a is a one digit integer. I don't like when a is 6-9 and I think I would prefer a only be 1, 2, or 5; that is what emacs is using (at least the version I have).

I think it is good if we can keep number of ticks to be between 5-10. I guess it is not fully possible with only 1, 2, and 5 but it should be possible to stay within 4-10.

Change History (3)

comment:1 Changed 13 years ago by Peter Johansson

Milestone: svndigest 0.x+svndigest 0.10
Status: newassigned

comment:2 Changed 13 years ago by Peter Johansson

Resolution: fixed
Status: assignedclosed

(In [1323]) fixes #490

comment:3 Changed 13 years ago by Peter Johansson

(In [1327]) refs #489 and #490. Use default tickspacing provided by plplot. With current implementation, v6.9.6, it means range 6-15 -> spacing=2; range 15-30 -> spacing=5; range 30-60 -> spacing=10 and similarly for other order of magnitudes. For dates it is similar, but the unit changes dynamically depending on the range. Basically they choose the largest unit of seconds, minutes, hours, days, weeks, and years, such that range is at least 3 in that unit. So when the range is more than 3 years we're counting in years and when the range is between 3 weeks and 3 years we're counting in weeks.

Note: See TracTickets for help on using tickets.