search for: clrramp2

Displaying 1 result from an estimated 1 matches for "clrramp2".

Did you mean: clrramp
2005 Sep 05
1
tcltk, X11 protocol error: Bug?
...trouble debugging this one. The code is attached below, but it seems to be a problem at the C-tk interface. If I run this 1 time there are no problems if I run it more than once I start to get warnings that increase in multiples of 11 everytime I run it. Here is a sample session > source("clrramp2.r") Loading required package: tcltk Loading Tcl/Tk interface ... done > clrRamp() > > tt<-clrRamp() > tt function (n) { x <- ramp(seq(0, 1, length = n)) rgb(x[, 1], x[, 2], x[, 3], max = 255) } <environment: 0x8b8674c> > image(matrix(1:10),col=tt(10)) > tt...