Re: [Matplotlib-users] Pan/Zoom can't work with blitting

2013-04-11 Thread Clare Soh
t to > follow issue 531. > > Best, > -Michiel. > > --- On *Thu, 4/11/13, Clare Soh * wrote: > > > From: Clare Soh > Subject: [Matplotlib-users] Pan/Zoom can't work with blitting > To: "matplotlib-users@lists.sourceforge.net" < > matplotlib-users@li

[Matplotlib-users] Pan/Zoom can't work with blitting

2013-04-11 Thread Clare Soh
Hi, To improve plotting speed, I decided to use blitting(canvas.copy_from_bbox(), canvas.restore_region() & canvas.blit()) instead of canvas.draw(), however panning & zooming stops working after this change. Now, when I click on the 'Pan/Zoom' button or the 'Zoom to rectangle' button on the Naviga

Re: [Matplotlib-users] Plotting against time

2012-06-18 Thread Clare Soh
Hi Ben, I tried including the date info into my data files as you suggested and it works! Thank you very much for help. Regards, Clare. On Mon, Jun 18, 2012 at 9:10 PM, Benjamin Root wrote: > > > On Mon, Jun 18, 2012 at 6:42 AM, Clare Soh wrote: > >> Hi, >> >>

[Matplotlib-users] Plotting against time

2012-06-18 Thread Clare Soh
Hi, I'm trying to plot some data against time using the following code: r = mlab.csv2rec(filename) self.axis.plot(r.time, r.jb_sizems) hfmt = dates.DateFormatter('%H:%M:%S.%f') self.axis.xaxis.set_major_formatter(hfmt) self.axis.set_titl

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