Nevermind, I figured it out.  The solution is to call r.bitmap *before* calling 
the plot() command, and not after.  whoops.

On 12/9/08 2:56 PM, "Eric Sun" <[EMAIL PROTECTED]> wrote:

Hi,

I'm trying to use Rpy2 to save some plots that I've created using python2.5 + 
rpy2 + R 2.8.0.
The plot displays in my X11 window fine, but I can't seem to save it.
If I do

r.png("filename.png", width=600, height=600)
r('dev.off()')
it creates a file called filename.png that's 0 bytes.

If I try the dev2bitmap command, it will create a file that's around 1800 
bytes, but blank.
If I try the bitmap command ( r.bitmap("bitmap.png")), nothing at all shows up.

Any ideas?

Thanks,
Eric
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to