matplotlib button problem
dimitri.pater at gmail.com
Thu Jan 25 01:15:56 CET 2007
post your question on matplotlib-users at lists.sourceforge.net
On 24 Jan 2007 13:37:22 -0800, Zielinski <jerzy.zielinski at gmail.com> wrote:
> 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.zielinski at gmail.com
You can't have everything. Where would you put it? -- Steven Wright
please visit www.serpia.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list