I am plotting many years of data. On the x-axis, I am plotting time of the day and on y-axis the value. The problem is x-axis ticks builtup together, not visible. How do I solve it?
plt.plot(df.index.strftime('%H:%M'),df['ydata'],'.')#hour+ssdf.index.minute/60
plt.gcf().autofmt_xdate()
plt.show()
In the above plot, I wanted to see the x-axis ticks show 00:00, 02:00, etc.