def _get_default_annual_spacing(nyears):
if nyears < <NUM_LIT:11>:<EOL><INDENT>(min_spacing, maj_spacing) = (<NUM_LIT:1>, <NUM_LIT:1>)<EOL><DEDENT>elif nyears < <NUM_LIT:20>:<EOL><INDENT>(min_spacing, maj_spacing) = (<NUM_LIT:1>, <NUM_LIT:2>)<EOL><DEDENT>elif nyears < <NUM_LIT:50>:<EOL><INDENT>(min_spacing, maj_spacing) = (<NUM_LIT:1>, <NUM_LIT:5>)<EOL><DEDENT>elif nyears < <NUM_LIT:100>:<EOL><INDENT>(min_spacing, maj_spacing) = (<NUM_LIT:5>, <NUM_LIT:10>)<EOL><DEDENT>elif nyears < <NUM_LIT:200>:<EOL><INDENT>(min_spacing, maj_spacing) = (<NUM_LIT:5>, <NUM_LIT>)<EOL><DEDENT>elif nyears < <NUM_LIT>:<EOL><INDENT>(min_spacing, maj_spacing) = (<NUM_LIT:10>, <NUM_LIT:50>)<EOL><DEDENT>else:<EOL><INDENT>factor = nyears // <NUM_LIT:1000> + <NUM_LIT:1><EOL>(min_spacing, maj_spacing) = (factor * <NUM_LIT:20>, factor * <NUM_LIT:100>)<EOL><DEDENT>return (min_spacing, maj_spacing)<EOL>
Returns a default spacing between consecutive ticks for annual data.