On Tue, Apr 14, 2009 at 12:00 AM, Clark Kogan <cjkogan...@gmail.com> wrote: > Hello, > I am trying to get Rpy to work. > I am using: > - Rpy for python 2.5 > - Python 2.5 > - R 2.70 > - Windows Vista > > I ran the following python script to make a simple plot: > > from rpy import r > > x = range(1,11) > y = [i**2 for i in x] > r.plot(x,y) > > Everything worked up to the plot command. The plot command opened an empty R > graphics window, which closed about half a second after it opened.
How did you run the python script? At the command prompt (DOS prompt), or in IDLE? Either way, once the python script terminates it sounds like it is correctly shutting down and closing all the windows it opened. > Next I tried putting the command: > a = input('a') > in order to pause the program before the window closed. This time the window > stayed open, but it was empty (no graph), and if I clicked on it, it would > show "not responding" at the top. Which version of rpy (or rpy2) are you using? There have been issues with interactive plots, but I personally have not kept track of when this was fixed (but I think it has been). In my own scripts I just write the image to a PNG or PDF file and don't bother with the graphics window. Peter ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list