Hello,
I set the x data only once now. It is a little bit faster (about 10%).
I'm still looking for a solution which only redraws the line and not the
whole widget.
Peter

Am 25.08.2013 15:00, schrieb Skip Montanaro:
>>     def updateGraph(self,data):
>>         datacut = data[10000 - self.DiagrammBreite.get_value():10000]
>>         self.line.set_ydata(datacut)
>>         self.line.set_xdata(numpy.arange(0, datacut.size, 1))
>>         self.fig.canvas.draw()
> If nothing else, it appears that the plot's x data are constant.  Have
> you tried just setting it once when you create self.line?
>
> Skip


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to