Re: [Matplotlib-users] [ploting data] Live data

2011-12-14 Thread David Hoese
multi-thread process? I've just tried to add >>> qApp.processEvents() at the end of my while loop but it doesn't change >>> anything... >>> >>> Thanks again, >>> >>> Fabien >>> >>> 2011/12/13 David Hoese: >>>

Re: [Matplotlib-users] [ploting data] Live data

2011-12-14 Thread Fabien Lafont
;> >>> Yeah I didn't think about suggesting that, but I think it might get >>> complicated.  I think he would have to start a one shot timer to call a >>> function to set the voltage.  Then that function would also start another >>> one shot timer to cal

Re: [Matplotlib-users] [ploting data] Live data

2011-12-14 Thread David Hoese
>> makes the event loop slow down. >> >> He could also use multiple threads. Whatever works for Fabien I guess. >> >> -Dave >> >> On 12/13/11 1:00 PM, matplotlib-users-requ...@lists.sourceforge.net wrote: >>> From: "Drain, Theodore R (343P)&qu

Re: [Matplotlib-users] [ploting data] Live data

2011-12-14 Thread Fabien Lafont
e the GUI gets complicated or something > makes the event loop slow down. > > He could also use multiple threads.  Whatever works for Fabien I guess. > > -Dave > > On 12/13/11 1:00 PM, matplotlib-users-requ...@lists.sourceforge.net wrote: >> >> From: "Drain, Theodo

Re: [Matplotlib-users] [ploting data] Live data

2011-12-13 Thread David Hoese
tever works for Fabien I guess. -Dave On 12/13/11 1:00 PM, matplotlib-users-requ...@lists.sourceforge.net wrote: > From: "Drain, Theodore R (343P)" > Subject: Re: [Matplotlib-users] [ploting data] Live data > > Perhaps I'm missing something, but why not use QTimer? You can

Re: [Matplotlib-users] [ploting data] Live data

2011-12-13 Thread Drain, Theodore R (343P)
uldn't need any processEvents calls or sleep. From: Fabien Lafont [lafont.fab...@gmail.com] Sent: Tuesday, December 13, 2011 12:30 AM To: David Hoese Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] [ploting data] Live data H

Re: [Matplotlib-users] [ploting data] Live data

2011-12-13 Thread David Hoese
one shot timer anyway >>>> to have it run after you have started the application ('qApp.exec_()'). I >>>> think the recommended way would be to use the timer the way you did in your >>>> latest email. >>>> >>>> 2. At least in

Re: [Matplotlib-users] [ploting data] Live data

2011-12-13 Thread Fabien Lafont
one shot timer anyway >>> to have it run after you have started the application ('qApp.exec_()').  I >>> think the recommended way would be to use the timer the way you did in your >>> latest email. >>> >>> 2. At least in the way my email client rea

Re: [Matplotlib-users] [ploting data] Live data

2011-12-12 Thread David Hoese
your original code, your calls >> to the matplotlib drawing functions aren't inside the while loop and the >> while loop never ends...although this doesn't matter if you don't fix #1 >> above. >> >> Hope that made sense. >> >> -Dave >

Re: [Matplotlib-users] [ploting data] Live data

2011-12-12 Thread Fabien Lafont
functions aren't inside the while loop and the > while loop never ends...although this doesn't matter if you don't fix #1 > above. > > Hope that made sense. > > -Dave > > > On 12/5/11 1:44 PM, matplotlib-users-requ...@lists.sourceforge.net w

Re: [Matplotlib-users] [ploting data] Live data

2011-12-05 Thread David Hoese
: > Message: 3 > Date: Mon, 5 Dec 2011 15:46:02 +0100 > From: Fabien Lafont > Subject: Re: [Matplotlib-users] [ploting data] Live data > Cc:matplotlib-users@lists.sourceforge.net > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 &g

Re: [Matplotlib-users] [ploting data] Live data

2011-12-05 Thread Fabien Lafont
Thx all for your remarks, I can't understand why this code works (when I use the timer method): # -*- coding: utf-8 -*- """ Created on Fri Dec 02 17:10:22 2011 @author: lafont """ #!/usr/bin/env python from visa import * from pylab import * import sys from PyQt4 import QtGui import numpy as np

Re: [Matplotlib-users] [ploting data] Live data

2011-12-04 Thread David Hoese
I think you forget to set the layout on your central widget. self.main_widget.setLayout(vbl) # in your case -Dave On 12/4/2011 9:57 AM, matplotlib-users-requ...@lists.sourceforge.net wrote: > 2011/12/2 Daniel Hyams: >> > I don't have PyQt installed, so I couldn't test the code, but don't you >

Re: [Matplotlib-users] [ploting data] Live data

2011-12-02 Thread Fabien Lafont
Thx Daniel I didn't know extend and it's more suitable for my program. It doesn't change the problem of plotting, but thx again! 2011/12/2 Daniel Hyams : > I don't have PyQt installed, so I couldn't test the code, but don't you want > to be using "extend" and not "append", if you are returning a

Re: [Matplotlib-users] [ploting data] Live data

2011-12-02 Thread Daniel Hyams
I don't have PyQt installed, so I couldn't test the code, but don't you want to be using "extend" and not "append", if you are returning a list from your two get_info() functions? On Fri, Dec 2, 2011 at 8:13 AM, Fabien Lafont wrote: > Hello everyone, I'm trying to plot live data extracting from r

[Matplotlib-users] [ploting data] Live data

2011-12-02 Thread Fabien Lafont
Hello everyone, I'm trying to plot live data extracting from remote devices (here it's simulated by get_info1 and 2 the result is always 0.8 or 0.9 I can't understand why it doesnt plot the graph at the end of the while loop. Does somebody has an idea? #!/usr/bin/env python from visa import * fr