How to set matplotlib X axis timestamp format to hours and minutes

matplotlib_timestamp_hm.py
import matplotlib.dates as mdates

plt.gca().xaxis.set_major_formatter(mdates.DateFormatter('%H:%M'))

 


Check out similar posts by category: Python