[Scipy-svn] r3589 - trunk/scipy/sandbox/timeseries

scipy-svn@scip... scipy-svn@scip...
Sat Nov 24 11:43:35 CST 2007


Author: pierregm
Date: 2007-11-24 11:43:31 -0600 (Sat, 24 Nov 2007)
New Revision: 3589

Modified:
   trunk/scipy/sandbox/timeseries/plotlib.py
Log:
plotlib : fixed a bug in _daily_finder and _annual_finder

Modified: trunk/scipy/sandbox/timeseries/plotlib.py
===================================================================
--- trunk/scipy/sandbox/timeseries/plotlib.py	2007-11-24 12:47:48 UTC (rev 3588)
+++ trunk/scipy/sandbox/timeseries/plotlib.py	2007-11-24 17:43:31 UTC (rev 3589)
@@ -223,7 +223,7 @@
                     info['fmt'][first_label(month_start)] = '%d\n%b\n%Y'
     # Case 2. Less than three months
     elif span <= periodsperyear//4:
-        month_start = period_break(dates,'month')
+        month_start = period_break(dates_,'month')
         info['maj'][month_start] = True
         info['min'] = True
         if asformatter:
@@ -287,7 +287,7 @@
             info['fmt'][year_start] = '%Y'
     # Case 6. More than 12 years ................
     else:
-        year_start = period_break(dates,'year')
+        year_start = period_break(dates_,'year')
         year_break = dates_[year_start].years
         nyears = span/periodsperyear
         (min_anndef, maj_anndef) = _get_default_annual_spacing(nyears)



More information about the Scipy-svn mailing list