Dear R-users,

I have a small problem with the function png(), when used with the
argument colortype="pseudo.cube".

 > png("toto.png", colortype="pseudo.cube")
 > image(matrix(rnorm(10000), 100, 100))
 > dev.off()

R is blocked at the last command (R does not
print any prompt after the last command). Nothing is
written in the file (Gimp indicates that the file is corrupted).
However,

 > png("toto.png")
 > image(matrix(rnorm(10000), 100, 100))
 > dev.off()

works fine.
I tried:

 > options(X11colortype = "pseudo.cube")
 > png("toto.png")
 > image(matrix(rnorm(10000), 100, 100))
 > dev.off()

But, here again, R is blocked. I tried to replace dev.off() by
graphics.off(), but this does not resolve the problem.
The problem does not occurs when the function X11() is used
instead of the function png().

I searched through the mail archive, the FAQ, on google,
but I did not found any solution to this problem.
On the help page on the function png(),
it is indicated that "The colour handling will be that of the 'X11'
device in use".

I never used these functions before, but maybe png()
is not suitable with colortype="pseudo.cube" ?
Can you tell me where I have missed something ?
Thanks in Advance,

Cl�ment Calenge.

 >version
          _
platform sparc-sun-solaris2.9
arch     sparc
os       solaris2.9
system   sparc, solaris2.9
status
major    1
minor    9.1
year     2004
month    06
day      21
language R

        [[alternative HTML version deleted]]

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to