Re: [Matplotlib-users] a tiny addition to acorr

2009-07-11 Thread John Hunter
On Fri, Jul 10, 2009 at 3:09 PM, Michael Lerner wrote: > Hi, > > I was looking at the autocorrelation of a time series recently and it was > useful to scale the x-axis (i.e. multiply lags by the timestep of my actual > data). It's a trivial change, but it might be useful for others. Here's a > stan

[Matplotlib-users] a tiny addition to acorr

2009-07-10 Thread Michael Lerner
Hi, I was looking at the autocorrelation of a time series recently and it was useful to scale the x-axis (i.e. multiply lags by the timestep of my actual data). It's a trivial change, but it might be useful for others. Here's a standalone version of axes.acorr: def scaledacorr(x, stepsize=1, norm