I have been trying to set a minor DateTime interval on the x-axis but it doesn't show at all. I am doing this on google collabnote book. I was able to get it to work before then re-run it seems to produce a different result far from the right plot. Any suggestion would be great, thank you in advance.
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
plt.style.use("dark_background")
eurusd['Close'] = pd.to_numeric(eurusd['Close'])
plt.figure(figsize=(40,10))
plt.xticks(rotation= 90)
ax = plt.gca()
xfmt = mdates.DateFormatter('%Y-%m-%d %H:%M:%S')
hours= mdates.HourLocator(interval=180)
ax.xaxis.set_major_formatter(xfmt)
ax.xaxis.set_major_locator(mdates.HourLocator(interval=720))
#issues with the minor locator not reflecting on plot
ax.xaxis.set_minor_locator(hours)
ax.spines['bottom'].set_linewidth(0.5)
plt.plot(eurusd['Local time'],eurusd['Close'],color='yellow', linewidth=1.5)

