Hi,

I use qt4 backend.
I update some lines doing something like that:

   def draw_curves(self, datas, x):
       for y in datas:
           self.lines[i].set_data(x, y)
           min_y, max_y = self.min_max(y)
           self.ax[i].axis((0, x[-1], min_y, max_y))
           #self.ax[i].draw_artist(self.lines[i])
           #self.fig.canvas.blit(self.ax[i].bbox)
       self.fig.canvas.draw()


the self.fig.canvas.draw() is very slow. (I have 20 subplot in that figure).
I tried to use:
           self.ax[i].draw_artist(self.lines[i])
           self.fig.canvas.blit(self.ax[i].bbox)
it's very fast. But it does not update the scale of the plot.
and it does not remove the old datas.

Can someone help me on that ?
if I plot a sin(x) at first, I get it between 0 and 1. then, if I plot
2.sin(x), it does not update the zoom to 0-2

thank you,
Philippe

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to