xticklabels question

I have an array of data that were sampled with a sampling rate of 1.5625 samples/sec . I want to plot these data with the x axis showing time in terms of hours for the major ticks and minutes for the minor ticks in my custom made wx App. I have been fiddling around with the HourLocator and MinuteLocator classes but it seems I can’t get them to work. Do you know an easy way to do this? I just want to plot my data in terms of the actual time/duration of logging they represent (in hours and/or in minutes when the plot is zoomed in or there is less than an hour’s worth of samples)

Well, the HourLocator, MiinuteLocator, etc are for times and not
durations. If you want durations, just use plot and not plot_date.
Does that help?

···

On 3/18/07, Allan Noriel Estrella <allan.noriel.estrella@...287...> wrote:

I have an array of data that were sampled with a sampling rate of 1.5625
samples/sec . I want to plot these data with the x axis showing time in
terms of hours for the major ticks and minutes for the minor ticks in my
custom made wx App. I have been fiddling around with the HourLocator and
MinuteLocator classes but it seems I can't get them to work. Do you know an
easy way to do this? I just want to plot my data in terms of the actual
time/duration of logging they represent (in hours and/or in minutes when the
plot is zoomed in or there is less than an hour's worth of samples)