Thanks for the tip Darren. Adding this line seems to have done the trick!
Very much appreciated.
--- On Fri, 6/12/09, Darren Dale <dsdal...@gmail.com> wrote:
From: Darren Dale <dsdal...@gmail.com>
Subject: Re: [Matplotlib-users] MPL with PyQt: different behavior on Windows
vs. Linux
To: "Steve Nicholes" <emailaddress_...@yahoo.com>
Cc: matplotlib-users@lists.sourceforge.net
Date: Friday, June 12, 2009, 6:24 AM
On Tue, Jun 9, 2009 at 6:17 PM, Steve Nicholes <emailaddress_...@yahoo.com>
wrote:
Hi,
I am writing some code for automated testing via GPIB using MPL and PyQt. To
simulate automated data collection while debugging the program, I have added a
for loop (see below) after reading in a data file that plots each point one by
one. When I run the program in Linux, I see each point appear on the canvas
one by one as designed, but when I run the same code in Windows, nothing shows
up on the canvas during the for loop. Instead, once the loop has completed,
all points appear simulataneously. Is there any reason the why calls to
canvas.draw() show nothing when run in Windows?
I have seen similar discrepancies between PyQt4 behavior on linux and windows
in a few situations. In my experience, a call to
PyQt4.QtGui.qApp.processEvents() is sufficient to force an update in your view.
Darren
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users