Menu

#103 Image doesn't plot

open
nobody
Win32 (20)
5
2012-07-18
2008-08-20
No

Why doesn't this just work?

from rpy import *
from numpy import *
r("""
x <- 10(1:nrow(volcano))
y <- 10
(1:ncol(volcano))
image(x, y, volcano, col = terrain.colors(100), axes = FALSE)
""")

I get a blank graphics window popping up. This is right from the "image" example in the help file.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I should add this is with Python 2.5.2, R 2.7.0.

     
  • Gregory Warnes

    Gregory Warnes - 2008-08-20

    Logged In: YES
    user_id=9316
    Originator: NO

    I presume you are using Win32. Which method are you using to run python?

     
  • Scott Tetrick

    Scott Tetrick - 2008-08-20

    Logged In: YES
    user_id=117083
    Originator: YES

    This was win32.

    I went back to R2.6.2 and the corresponding RPY version from Sourceforge, and it now works.

    I am using IDLE to launch Python2.5.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB