Re: [Matplotlib-users] Help needed with FuncAnimation

2012-04-23 Thread Clare Soh
Hi, I managed to figure this out. I need to pass an init function to FuncAnimation. Quoting from the MatPlotLib API documentation: *init_func* is a function used to draw a clear frame. If not given, the results of drawing from the first item in the frames sequence will be used. So just in case s

[Matplotlib-users] Help needed with FuncAnimation

2012-04-22 Thread Clare Kwan
Hi, I'm trying to learn how to use FuncAnimation. I made some small modifications to one of the matplotlib examples & tried it out, but I encounter a problem. I'm trying to update a line plot every 1 sec & I have my x-axis limit set to (0,10) initially. When the plot reaches x=10, I change the x-a