plt.plot_date([datetime(2013, 1, 1), datetime(2013, 5, 31)], [datetime(2013,
    1, 1), datetime(2013, 5, 10)])
loc = ax.xaxis.get_major_locator()
loc.maxticks[DAILY] = 12
plt.show()
Проблема с matplotlib datetime xlabel