[Rd] "clipping error in x11()" (PR#564)

Ross Ihaka ihaka@stat.auckland.ac.nz
Fri, 9 Jun 2000 08:58:34 +1200


On Wed, Jun 07, 2000 at 11:06:24PM +0200, albrecht.gebhardt@uni-klu.ac.at wrote:
> 
> There seems to be an error in the X11 display code:
> 
> try:
> 
> plot(c(-30000,-1,0,1,30000),c(30000,1,0,1,30000),type="l")
> points(c(-30000,-1,0,1,30000),c(30000,1,0,1,30000))
> 
> it gives a big "V" as expexted. Now zoom in using small xlim and ylim:
> 
> plot(c(-30000,-1,0,1,30000),c(30000,1,0,1,30000),type="l",
>      xlim=c(-5,5),ylim=c(0,5))
> points(c(-30000,-1,0,1,30000),c(30000,1,0,1,30000))
> 
> gives no "V" as expected but kind of a "M".
> 
> It occures not only on Digital Unix as indicated below but also on
> Linux (SuSE 5.3 as well as SuSE 6.4), only the angles in the "M"-like display
> are sligthly different. Compilers where: gcc 2.95.2 on Tru64 and SuSE 6.4,
> egcs 2.91.57 on SuSE 5.3.
> 
> Interestingly the plots are correct with postscript().
> 
> The error does not occur with rwin 1001.
> 
> 
> BTW: This is the error which "destroys" sometimes the output of plot.voronoi()
> in my tripack package.

Paul Murrell and I recently made some changes to the clipping code
which seems to have fixed this (and other) problems.

	Ross
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._