From ben.bob at gmail.com  Mon Jan  9 16:48:28 2006
From: ben.bob at gmail.com (Bo Peng)
Date: Mon, 9 Jan 2006 09:48:28 -0600
Subject: [Rd] R plot display problem under windows when using python rpy
	module.
In-Reply-To: <Pine.LNX.4.61.0601091446430.13067@gannet.stats>
References: <6ea7b5430601090629u6c3a6ed4r41d096e61c2579e7@mail.gmail.com>
	<Pine.LNX.4.61.0601091446430.13067@gannet.stats>
Message-ID: <6ea7b5430601090748m4c232e2ercb54f792018982a@mail.gmail.com>

On 1/9/06, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
> How is Rpy calling R?  Presumably R is running single-threaded, and the
> problem is likely to be that Rpy is using blocking I/O on the R process
> and hence blocking the GUI callbacks that drive the window.
>
> The not-so-simple answer is not to do it that way.  It might be well
> sufficient to turn windows() buffering off -- see its help page.

Using
>>> from rpy import *
>>> r.options(windowsBuffered=False)
>>> r.plot(0)
solves the problem.

Thank you very much! I will suggest that rpy developers address this problem.

Bo



[Rd] R plot display problem under windows when using python rpy module.
Bo Peng