matplotlib button problem

dimitri pater dimitri.pater at gmail.com
Thu Jan 25 01:15:56 CET 2007


Hi,
post your question on matplotlib-users at lists.sourceforge.net

regards,
Dimitri

On 24 Jan 2007 13:37:22 -0800, Zielinski <jerzy.zielinski at gmail.com> wrote:
>
> Hi,
>
> Recently I started to use matplotlib with python. Now I would like to
> have interaction with my plots. Here is the problem:
>
> I have a long vector of data, to long to display it on one picture,
> because of, well you know to much data to big mess... so I decided to
> extract some data from long_vector to short_vector with 100 elements.
> So I have:
>    data_position = 1
>    interval = 100
>    for i in range (0, interval):
>       short_vector[i] = long_vector[data_position*interval + i]
>
> Then I plot it. works fine...
> Now I created a button "next" I would like to press it and change the
> data_position to +1 every time i press it, of course, and redraw the
> picture. It can be a key on the keyboard, I don't care.
>
> Bottom line: how to change the global variable with the button in
> matplotlib, and redraw a picture using this variable
>
> Thanks for help
> Jerzy
> jerzy.zielinski at gmail.com
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
---
You can't have everything. Where would you put it? -- Steven Wright
---
please visit www.serpia.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070125/74ea6fc9/attachment.html>


More information about the Python-list mailing list