I am currently plotting a temporal series using pyplot. I have specified the following x-ticks, which consist of four objects of type datetime:
x_ticks
array(['2021-10-17T09:23:11.000000', '2021-10-17T10:02:15.750000',
'2021-10-17T10:41:20.500000', '2021-10-17T11:20:25.250000'],
dtype='datetime64[us]')
As you can see, each element (purposely) has a time resolution down to microseconds. So far, so good. However, when I actually get to plot my graph of interest, by default the time axis appears with format YYYY-MM-DD, like in the image below:
It automatically crops the hours and seconds, but I would like to visualize them. How can I specify the resolution of my time x-ticks that needs to appear in the plots?


