Help with Tick Locators and Formatters

hours = HourLocator() minutes = MinuteLocator() timeFmt =

    > DateFormatter('%H:%M')

    > ax.xaxis.set_major_locator(hours)
    > ax.xaxis.set_minor_locator(minutes)
    > ax.xaxis.set_minor_formatter(timeFmt)

    > ax.autoscale_view()

    > Am I too far off target here? Because I can't get it to
    > work.

    > I've also looked at the user's manual (5.4 example 2:
    > date ticking). Could someone please point me in the
    > right direction or provide an example of how it _should_
    > be done? Thank you in advance.

All of the date ticker locators accept ranges to indicate where you
want the ticks. See, eg,

To tick every 5 minutes, just give the range of minutes you want

  loc = MinuteLocator(range(5,60,5)) # don't tick on 0 and 60
  loc = MinuteLocator(range(0,61,5)) # tick on 0 and 60 as well

The default is to tick on every minute...