Please disregard, i finally solved my problem using IndexLocator:
# datetime variable x is in 15 min intervals, 6 1/2 hours in trading day
# results in 26 data points per day, so:
days = IndexLocator(26, 1)
hours = IndexLocator(4, 1)
ax = subplot(111)
plot(datesindex, y)
ax.xaxis.set_major_locato
I am getting closer to the results I want by modifying my days and hours
locators to read:
days = WeekdayLocator(byweekday=(MO, TU, WE, TH, FR))
hours = HourLocator(byhour=range(9,17,1))
but the xaxis still fills in times for the rest of each day interval,
but now only shows xtick labels for the
I am trying to figure out how i can use IndexLocator with DateFormatter.
Currently i am only using DayLocator and HourLocator in my code, but it
is showing ticks for all hours in the plot, when I only care about
plotting the hours for when data is available.
I already applied date2num to my dates