jchoi@dal.ca
2003-Feb-24 17:32 UTC
[Rd] hsv producing a color intensity not in [0,1] (PR#2576)
Full_Name: Jae Choi Version: 1.6.1 OS: linux (x86) Submission from: (NULL) (142.176.61.245) Hello, Any attempts to access the "hsv" function returns the following type of error: Error in hsv(h = seq(start, ifelse(start > end, 1, 0) + end, length = n)%%1, : color intensity 1.25, not in [0,1] (the above was generated from the demo command:> pie(rep(1, 24), col = rainbow(24), radius = 0.9)) When hsv is accessed with values such as: hsv(0.5, 0.5, 0.5, 1) gives "#80FF40" h3sv(0.5, 0.5, 0.49, 1) gives "#7DFA3E" however, hsv(0.5, 0.5, 0.51, 1) gives "color intensity 1.02, not in [0,1] " I have run the same above on the MSWindows port and the colour values are very different: ("#408080, #3E7D7D, and #418282, respectively). On the MSWindows platform, the colours seem well behaved and no errors are encountered. Any help would be appreciated. Jae
maechler@stat.math.ethz.ch
2003-Feb-24 17:57 UTC
[Rd] hsv producing a color intensity not in [0,1] (PR#2576)
No bug :>>>>> "jchoi" == jchoi <jchoi@dal.ca> >>>>> on Mon, 24 Feb 2003 17:32:23 +0100 (MET) writes:jchoi> Full_Name: Jae Choi jchoi> Version: 1.6.1 jchoi> OS: linux (x86) jchoi> Submission from: (NULL) (142.176.61.245) jchoi> Hello, jchoi> Any attempts to access the "hsv" function returns the jchoi> following type of error: jchoi> Error in hsv(h = seq(start, ifelse(start > end, 1, 0) + end, length = n)%%1, : jchoi> color intensity 1.25, not in [0,1] The error message shows that you are using a different hsv() function than the official one. rm(hsv) will probably solver your problem {unless it's in a bogous package you have attached.. in that case, find(hsv) will show you which package}. Regards, Martin Maechler <maechler@stat.math.ethz.ch> http://stat.ethz.ch/~maechler/ Seminar fuer Statistik, ETH-Zentrum LEO C16 Leonhardstr. 27 ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND phone: x-41-1-632-3408 fax: ...-1228 <>< jchoi> (the above was generated from the demo command: >> pie(rep(1, 24), col = rainbow(24), radius = 0.9) jchoi> ) jchoi> When hsv is accessed with values such as: jchoi> hsv(0.5, 0.5, 0.5, 1) gives "#80FF40" jchoi> hsv(0.5, 0.5, 0.49, 1) gives "#7DFA3E" jchoi> however, jchoi> hsv(0.5, 0.5, 0.51, 1) gives "color intensity 1.02, not in [0,1] " jchoi> I have run the same above on the MSWindows port and the colour values are very jchoi> different: jchoi> ("#408080, #3E7D7D, and #418282, respectively). On the MSWindows platform, the jchoi> colours seem well behaved and no errors are encountered. Any help would be jchoi> appreciated. jchoi> Jae