R-alpha: Small bug in plot

Ross Ihaka (ihaka@stat.auckland.ac.nz)
Thu, 5 Dec 1996 14:40:55 +1300 (NZDT)


From: Ross Ihaka <ihaka@stat.auckland.ac.nz>
Date: Thu, 5 Dec 1996 14:40:55 +1300 (NZDT)
Message-Id: <199612050140.OAA20642@stat13.stat.auckland.ac.nz>
To: Arne Kovac <A.Kovac@Bristol.ac.uk>
Subject: R-alpha: Small bug in plot
In-Reply-To: <Pine.GSO.3.95.961204222142.12603A-100000@hannan>

Arne Kovac writes:
 > It seems that the plot function has problems with data sets where the scale 
 > is not much bigger than the precision of the floating point arithmetic. 
 > For example, the following three commands
 > 
 > > y<-rep(1,1000)
 > > y[500]<-1+1e-10
 > > plot(y)
 > 
 > run into an endless loop of the plot command.
 > 
 > Arne Kovac

In the routine GPretty in src/graphics/gscale.c there is a FLT_EPSILON
which is commented out.  Restoring that fixes your problem.  I can't
remember the problem which this re-introduces ...
	Ross
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-