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:
>>>
;>
>>> 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
>> 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
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
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
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
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
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
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
>
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
:
> 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
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
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
>
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
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
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
16 matches
Mail list logo