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

Discussion in 'Python' started by Bo Peng, Jan 9, 2006.

  1. Bo Peng

    Bo Peng Guest

    Dear list,

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

    >>> from rpy import *
    >>> r.plot(0)


    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
     
    Bo Peng, Jan 9, 2006
    #1
    1. Advertising

  2. Bo Peng

    Bo Peng Guest

    Bo Peng wrote:
    > 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
     
    Bo Peng, Jan 9, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. stephan
    Replies:
    0
    Views:
    460
    stephan
    Jul 30, 2003
  2. Ollie
    Replies:
    0
    Views:
    401
    Ollie
    Oct 2, 2003
  3. idle.py commandline

    , Jul 23, 2004, in forum: Python
    Replies:
    1
    Views:
    400
    Christopher T King
    Jul 23, 2004
  4. Dr. Colombes
    Replies:
    1
    Views:
    1,076
    John Hunter
    Feb 10, 2005
  5. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,254
    Smokey Grindel
    Dec 2, 2006
Loading...

Share This Page