@@ -1215,14 +1215,14 @@ class AutoDateLocator(DateLocator):
1215
1215
----------
1216
1216
intervald : dict
1217
1217
1218
- Mapping of tick frequencies (a constant from dateutil.rrule) to
1219
- multiples allowed for that ticking. The default looks like this ::
1218
+ Mapping of tick frequencies to multiples allowed for that ticking.
1219
+ The default is ::
1220
1220
1221
1221
self.intervald = {
1222
1222
YEARLY : [1, 2, 4, 5, 10, 20, 40, 50, 100, 200, 400, 500,
1223
1223
1000, 2000, 4000, 5000, 10000],
1224
1224
MONTHLY : [1, 2, 3, 4, 6],
1225
- DAILY : [1, 2, 3, 7, 14],
1225
+ DAILY : [1, 2, 3, 7, 14, 21 ],
1226
1226
HOURLY : [1, 2, 3, 4, 6, 12],
1227
1227
MINUTELY: [1, 5, 10, 15, 30],
1228
1228
SECONDLY: [1, 5, 10, 15, 30],
@@ -1231,10 +1231,16 @@ class AutoDateLocator(DateLocator):
1231
1231
100000, 200000, 500000, 1000000],
1232
1232
}
1233
1233
1234
+ where the keys are defined in `dateutil.rrule`.
1235
+
1234
1236
The interval is used to specify multiples that are appropriate for
1235
1237
the frequency of ticking. For instance, every 7 days is sensible
1236
1238
for daily ticks, but for minutes/seconds, 15 or 30 make sense.
1237
- You can customize this dictionary by doing::
1239
+
1240
+ When customizing, you should only modify the values for the existing
1241
+ keys. You should not add or delete entries.
1242
+
1243
+ Example for forcing ticks every 3 hours::
1238
1244
1239
1245
locator = AutoDateLocator()
1240
1246
locator.intervald[HOURLY] = [3] # only show every 3 hours
0 commit comments