Victor
Victor

Reputation: 17107

Matplotlib autocorrelation plotting negative lags

I am using matplotlib acorr function to plot autocrrrelation, but I don't want the negative lags. How can I prevent the negative lags from appearing in the plot? https://pythontic.com/visualization/charts/autocorrelation

Upvotes: 0

Views: 888

Answers (1)

Diziet Asahi
Diziet Asahi

Reputation: 40737

Couldn't you simply adjust the limits of your x-axis to only show the positive values

plt.xlim([0,<whaterver is the highest value])

Upvotes: 1

Related Questions