On 4/10/07, Iyer <[EMAIL PROTECTED]> wrote:
> I apologize if I haven't been sufficiently clear.
>
> While your suggestion picks out the samples from the
> sample set, and discards other samples - what I was
> looking at --
>
> when I plot a sample set, of say - 1000 points, the
> xticks shows up as 0 to 1000 points on the plot.
>
> I was wondering if there could be a way to translate
> the xtick display to that of seconds, if the sampling
> frequency is 250 Hz, the plot would still display the
> original data set, but with different xticks -- for
> e.g. it would display xticks as 0 to 4 seconds rather
> than 0 to 1000 points.. hence is there a good way to
> "translate ticks" ?

Yes, you can certainly do this, but what we are suggesting is that it
makes more sense to simply scale your data before plotting.  Is there
a reason you don't want to do this

  ax.plot(ind*dt, y)

The index locator

JDH

-------------------------------------------------------------------------
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

Reply via email to