Thanx for the response..

I'd like to avoid the pylab interface... 

linspace is good.

assume you have 1000 points of data and you'd like the
ticks to display from 0 to 4, since the 1000 points of
data were sampled at 250 Hz.  

any "non-pylab" ideas ? Indexlocator?

-iyer

--- Antonio Gonzalez <[EMAIL PROTECTED]> wrote:

> Not sure if I understand, but I think this is what
> you want to do:
> 
> y = rand(1000) # your 1000 random points
> x = linspace(0, 250, y.size)
> plot(x,y)
> 
> /A
> 
> 
> Iyer wrote:
> > I think this is a trivial question..
> > 
> > If there are a set of data points being plotted in
> a
> > subplot, say 0 to 1000 points; the subplot
> displays
> > the ticks as 0 to 1000 points and it is desired to
> > "translate" those points to 0 t0 250 points on the
> > subplot display - with point 0 mapping to point 0,
> > point 250 mapping to point 2 and so on, what could
> be
> > the best way to do this ? 
> > 
> > Just curious,
> > thanks,
> > iyer
> > 
> > 
> > 
> > 
> > 
> > 
> >        
> >
>
____________________________________________________________________________________
> > Never miss an email again!
> > Yahoo! Toolbar alerts you the instant new Mail
> arrives.
> >
> http://tools.search.yahoo.com/toolbar/features/mail/
> > 
> >
>
-------------------------------------------------------------------------
> > 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
> 



       
____________________________________________________________________________________
Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

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