Re: [Matplotlib-users] gtkagg backend - update behavior question

2009-11-30 Thread Alastair McKinley
Hi JJ, Thanks very much that was exactly the right solution! Best regards, Alastair On Sat, Nov 28, 2009 at 12:55 AM, Jae-Joon Lee wrote: > Maybe this thread is helpful. > > > http://old.nabble.com/Problem-with-simple-use-of-draw%28%29-in-animations-of-arrays-tt26174627.html#a26175190 > > I g

[Matplotlib-users] gtkagg backend - update behavior question

2009-11-30 Thread Alastair McKinley
Hi everyone, I am a new matplotlib user building a simple visualization tool. I was having some issues with the graph not redrawing and I think I have reduced it to a minimal case that doesn't work as expected for me. In the example below one of the data elements is changed on every iteration of

Re: [Matplotlib-users] gtkagg backend - update behavior question

2009-11-27 Thread Jae-Joon Lee
Maybe this thread is helpful. http://old.nabble.com/Problem-with-simple-use-of-draw%28%29-in-animations-of-arrays-tt26174627.html#a26175190 I guess your code will work simply by calling "recache()" instead of set_ydata. Regards, -JJ On Sat, Nov 28, 2009 at 4:50 AM, Alastair McKinley wrote: >

Re: [Matplotlib-users] gtkagg backend - update behavior question

2009-11-27 Thread Stephen George
Hi Alastair, I don't have clue why yours doesn't work. however I changed the following line in the update function data[20]=data[20]+0.5 to data = np.random.randn(100) And it started updating the display, with new data each update. maybe changing a single point is not seen as a big enough chan

[Matplotlib-users] gtkagg backend - update behavior question

2009-11-27 Thread Alastair McKinley
Hi everyone, I am a new matplotlib user building a simple visualization tool. I was having some issues with the graph not redrawing and I think I have reduced it to a minimal case that doesn't work as expected for me. In the example below one of the data elements is changed on every iteration of