|
From: John H. <jd...@gm...> - 2007-04-10 15:11:32
|
On 4/10/07, Iyer <mas...@ya...> 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 |