With all respect, I have certainly perused the
tutorials before posting the question. I'm still a
newbie and I acknowledge I have miles and miles to go
before I can be someone who can help out in the
Matplotlib group like you guys do.

The problem is simple, it is like the date examples in
the Matplotlib code -- the ticks for the date examples
(seconds, hours, time etc) are different from the
usual ticks, which is usually the number of samples.

If only someone could guide me, so that I can
understand better how to "translate" the ticks from
the default "number of sample" ticks to that of
different ticks - say
new_ticks=original_ticks/(some_constant). Right now
I'm clueless, your input will help a lot in
understanding Mpl.

Thanks guys for your feedback and help
iyer




--- Eric Firing <[EMAIL PROTECTED]> wrote:

> There seems to be a huge misunderstanding here, and
> I am not sure what 
> it is, but what you need to do is run examples and
> experiment with 
> variations until you have some inkling of what mpl
> is actually doing. 
>   Start with  
> http://matplotlib.sourceforge.net/tutorial.html.
> 
> Please note that the ticks are simply labeled
> locations--they have no 
> effect on what data are plotted.
> 
> When you do ax.plot(ind*dt, y), absolutely *nothing*
> is lost; every 
> value of y in your array is plotted. mpl is plotting
> (x,y) pairs--all of 
> them--and labeling the axes accordingly.
> 
> To see what is being plotted, you can use
> plot(x,y,'ro'), for example, 
> to plot each point as a red circle.  Experiment with
> this.
> 
> Don't worry right now about avoiding the pylab
> interface; take advantage 
> of its simplicity to get the most basic plotting
> concepts straightened 
> out via quick experimentation.  Use the gui zoom
> button to see how axis 
> labeling works.  Make your own simple examples; plot
> random points, plot 
> sin waves.
> 
> Eric
> 
> Iyer wrote:
> > It is not what I need..
> > 
> >
>
http://matplotlib.sourceforge.net/matplotlib.axes.html
> > 
> > The plot method (plot(self, *args, **kwargs))
> accepts
> > only x,y pairs, in ax.plot(ind*dt, y) -- the x
> > parameter is ind*dt - the sample times, but the
> data
> > between the sample points is lost. IMHO, the
> likely
> > way to prevent loss of sampled data points is
> changing
> > the ticks, isn't that possible to change the
> ticks,
> > while keeping the data as it is -- plotted as if
> it
> > were for a number of data points.
> > 
> > -iyer
> > 
> > 
> > 
> > 
> > --- John Hunter <[EMAIL PROTECTED]> wrote:
> > 
> >> On 4/10/07, John Hunter <[EMAIL PROTECTED]>
> wrote:
> >>> 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 --
> >> My suggestion does not "discard other samples",
> so
> >> you may not be
> >> understanding what I am saying.  Perhaps you can
> try
> >> the suggested
> >> code and see if it does what you want.  My
> example
> >> plots all the
> >> samples; it simply scales the xaxis to represent
> >> time and not sample
> >> number.
> >>
> > 
> > 
> > 
> >        
> >
>
____________________________________________________________________________________
> > Looking for earth-friendly autos? 
> > Browse Top Cars by "Green Rating" at Yahoo! Autos'
> Green Center.
> > http://autos.yahoo.com/green_center/
> > 
> >
>
-------------------------------------------------------------------------
> > 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
> 
> 



       
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.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