[Matplotlib-users] xticklabels question

2007-03-18 Thread Allan Noriel Estrella

I have an array of data that were sampled with a sampling rate of
1.5625samples/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)
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] xticklabels question

2007-03-18 Thread John Hunter
On 3/18/07, Allan Noriel Estrella <[EMAIL PROTECTED]> 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)

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?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users