So I have a Time-Series plot, but the problem with it is that the x labels are one over the other, and I'm wondering how to correct it?
Here's the code:
def time_series(start, end): time_series_df = Res[['Timestamp', 'Ammonia']][(Res['Timestamp'] >= start) & (Res['Timestamp'] <= end)] x = time_series_df.Timestamp y = time_series_df.Ammonia plt.plot(x,y) plt.xlabel('Time') plt.ylabel('Ammonia Value') plt.title('Ammonia Time Series') return plt.show()
And when I display it:
time_series('2013-11-01 00:00:00','2013-12-31 23:00:00')
Here's what I get: