From ihaka@stat.auckland.ac.nz  Thu Jun  8 21:58:34 2000
From: ihaka@stat.auckland.ac.nz (Ross Ihaka)
Date: Fri, 9 Jun 2000 08:58:34 +1200
Subject: [Rd] "clipping error in x11()" (PR#564)
In-Reply-To: <200006072106.XAA13880@pubhealth.ku.dk>; from albrecht.gebhardt@uni-klu.ac.at on Wed, Jun 07, 2000 at 11:06:24PM +0200
References: <200006072106.XAA13880@pubhealth.ku.dk>
Message-ID: <20000609085834.A5928@stat1.stat.auckland.ac.nz>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


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