plot_date function set xticks for hourly data
问题 I currently have a function that creates a time series graph from time/date data that is in MM-DD-YYYY HH-MM format. I am unsure as to how to change the x axis ticks such that it displays hours as well as the date as it currently only shows dates. The set_major_locator line I included only returns ticks that have the year even though I have specified the hour_locator and the data is hourly. def graph(region): fig = plt.figure(num=None, figsize=(60, 20), dpi=100, facecolor='w', edgecolor='k')