[Scipy-svn] r2652 - in trunk/Lib/sandbox/timeseries: archived_version examples

scipy-svn at scipy.org scipy-svn at scipy.org
Tue Jan 30 14:52:15 CST 2007


Author: mattknox_ca
Date: 2007-01-30 14:52:09 -0600 (Tue, 30 Jan 2007)
New Revision: 2652

Added:
   trunk/Lib/sandbox/timeseries/archived_version/plotting.py
Removed:
   trunk/Lib/sandbox/timeseries/examples/plotting.py
Log:
Moved remotely

Copied: trunk/Lib/sandbox/timeseries/archived_version/plotting.py (from rev 2651, trunk/Lib/sandbox/timeseries/examples/plotting.py)

Deleted: trunk/Lib/sandbox/timeseries/examples/plotting.py
===================================================================
--- trunk/Lib/sandbox/timeseries/examples/plotting.py	2007-01-30 20:39:45 UTC (rev 2651)
+++ trunk/Lib/sandbox/timeseries/examples/plotting.py	2007-01-30 20:52:09 UTC (rev 2652)
@@ -1,28 +0,0 @@
-import pylab as pl
-import timeseries as ts
-import timeseries.plotlib as tpl
-import numpy as np
-
-numPoints = 100
-freq = 'b'
-
-y_ts1 = ts.TimeSeries(100*np.cumprod(1 + np.random.normal(size=numPoints)/100), freq=freq, start_date=ts.thisday(freq)-numPoints)
-y_ts2 = ts.TimeSeries(100*np.cumprod(1 + np.random.normal(size=numPoints)/100), freq=freq, start_date=ts.thisday(freq)-numPoints)
-
-y_ts1, y_ts2 = ts.aligned(y_ts1, y_ts2)
-
-sDate, eDate = y_ts1.start_date(), y_ts1.end_date()
-dAxis = tpl.DateAxis(sDate, eDate)
-
-pl.clf()
-
-a = pl.subplot(1,1,1)
-a.plot(dAxis.xaxis, y_ts1, '-', dAxis.xaxis, y_ts2, '-')
-dAxis.set_labels(a)
-
-#a.set_xlim(dAxis.xaxis[0], dAxis.xaxis[-1])
-
-pl.title('Time Series Plot')
-pl.show()
-
-



More information about the Scipy-svn mailing list