I have 60 months in X and 60 values in Y, I plotted them like this and I got the following output
import matplotlib.pyplot as plt
plt.figure(figsize = (8, 4))
plt.plot(x[:60], y[:60])
plt.title("5 years peformance")
plt.xlabel("Year")
plt.ylabel("Rebased to 100")
plt.show()
The output looks something like this
As you can see the dates are overlapping, How do I fix it?