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
Thanks guys for your feedback and help
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
variations until you have some inkling of what mpl
is actually doing.
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
Don't worry right now about avoiding the pylab
interface; take advantage
of its simplicity to get the most basic plotting
out via quick experimentation. Use the gui zoom
button to see how axis
labeling works. Make your own simple examples; plot
random points, plot
> It is not what I need..
--- Eric Firing <efiring@...202...> wrote:
> The plot method (plot(self, *args, **kwargs))
> only x,y pairs, in ax.plot(ind*dt, y) -- the x
> parameter is ind*dt - the sample times, but the
> between the sample points is lost. IMHO, the
> way to prevent loss of sampled data points is
> the ticks, isn't that possible to change the
> while keeping the data as it is -- plotted as if
> were for a number of data points.
> --- John Hunter <jdh2358@...287...> wrote:
>> On 4/10/07, John Hunter <jdh2358@...287...> > wrote:
>>> On 4/10/07, Iyer <maseriyer@...9...> wrote:
>>>> I apologize if I haven't been sufficiently
>>>> While your suggestion picks out the samples
>>>> sample set, and discards other samples - what I
>>>> looking at --
>> My suggestion does not "discard other samples",
>> you may not be
>> understanding what I am saying. Perhaps you can
>> the suggested
>> code and see if it does what you want. My
>> plots all the
>> samples; it simply scales the xaxis to represent
>> time and not sample
> Looking for earth-friendly autos?
> Browse Top Cars by "Green Rating" at Yahoo! Autos'
> Take Surveys. Earn Cash. Influence the Future of
> 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
> Matplotlib-users mailing list
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.