from matplotlib.dates import DateFormatter
Rotating x-axis tick labels:
ax.tick_params(axis="x", rotation=45)
Formatting x-axis tick labels if they are datetime objects:
timeFmt = DateFormatter('%H:%M:%S')
ax.xaxis.set_major_formatter(timeFmt)
from matplotlib.dates import DateFormatter
Rotating x-axis tick labels:
ax.tick_params(axis="x", rotation=45)
Formatting x-axis tick labels if they are datetime objects:
timeFmt = DateFormatter('%H:%M:%S')
ax.xaxis.set_major_formatter(timeFmt)