Why does Rpy/R-plot work under PythonWin, but not under commandline/IDLE?

B

Bo Peng

Dear list,

I am using rpy, a python module to control statistical package R from
python. Running the following commands

will pass command 'plot' to R and run it. I notice that the R-plot will
not refresh (a window is created but the figure is not drawn) until the
next plot command is executed,
* when I use python (2.3, 2.4) command line or IDLE
* NOT when I use pythonwin ( provided with pywin32 package)

Since rpy+R works under python+pythonwin, I assume that this is not a
problem with rpy or R. Does anyone know why commandline/IDLE cause this
problem, while PythonWin does not? I am interested to know what I can do
in commandline (or in rpy) to fix this problem.

Regards,
Bo
 
B

Bo Peng

Bo said:
Does anyone know why commandline/IDLE cause this
problem, while PythonWin does not? I am interested to know what I can do
in commandline (or in rpy) to fix this problem.

Just note that R/plot works fine both from command window and a R-GUI.

Bo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top