albrecht.gebhardt@uni-klu.ac.at
2000-Jun-07 21:06 UTC
[Rd] "clipping error in x11()" (PR#564)
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. Albrecht ...................................................................... | Albrecht Gebhardt Tel.: (++43 463) 2700/832 | | Institut fuer Mathematik Fax : (++43 463) 2700/834 | | Universitaet Klagenfurt mailto:albrecht.gebhardt@uni-klu.ac.at | | Villacher Str. 161 http://www-stat.uni-klu.ac.at/~agebhard | | A-9020 Klagenfurt, Austria | `--------------------------------------------------------------------' --please do not edit the information below-- Version: platform = alpha-dec-osf4.0 arch = alpha os = osf4.0 system = alpha, osf4.0 status = major = 1 minor = 0.1 year = 2000 month = April day = 14 language = R Search Path: .GlobalEnv, Autoloads, package:base -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
albrecht.gebhardt@uni-klu.ac.at writes:> 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".Seems to be gone in the development sources. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._