1

I am using Python's matplotlib acorr to plot autocorrelations of time series, but the graph always includes the negative lags.

Since autocorrelation function is always even anyway, I would like to suppress the negative x-axis of the graph.

Is there a parameter I can pass to acorr?

kirakun
  • 2,770
  • 1
  • 25
  • 41
  • 3
    You could use the `numpy.correlate`, http://stackoverflow.com/questions/643699/how-can-i-use-numpy-correlate-to-do-autocorrelation. Or, if you really insist on using `matplotlib`'s `acorr`, simply adjust the plot range. – ev-br Feb 11 '13 at 23:50

1 Answers1

0

Using plt.xlim([0,<whaterver is the highest value>]) worked for me. You can see original post from Diziet Asahi here