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

scipy-svn@scip... scipy-svn@scip...
Fri Nov 23 18:01:36 CST 2007


Author: mattknox_ca
Date: 2007-11-23 18:01:30 -0600 (Fri, 23 Nov 2007)
New Revision: 3572

Modified:
   trunk/scipy/sandbox/timeseries/plotlib.py
Log:
putting some modifications back in that were overwritten in previous commit

Modified: trunk/scipy/sandbox/timeseries/plotlib.py
===================================================================
--- trunk/scipy/sandbox/timeseries/plotlib.py	2007-11-23 23:26:02 UTC (rev 3571)
+++ trunk/scipy/sandbox/timeseries/plotlib.py	2007-11-24 00:01:30 UTC (rev 3572)
@@ -70,7 +70,7 @@
     except TypeError:
         key = str(key)
     #
-    if figure_instance._seen.has_key(key):
+    if key in figure_instance._seen:
         ax = figure_instance._seen[key]
         figure_instance.sca(ax)
         return ax
@@ -554,7 +554,7 @@
     #
     def __call__(self, x, pos=0):
         fmt = self.formatdict.pop(x, '')
-        return Date(self.freq, value=int(x)).strfmt(fmt)
+        return Date(self.freq, value=int(x)).strftime(fmt)
 
 
 



More information about the Scipy-svn mailing list