dev.print scaling bug? (PR#229)

John.Peters@tip.csiro.au John.Peters@tip.csiro.au
Fri, 16 Jul 1999 04:09:33 +0200 (MET DST)


# demo of bug in dev.print()
# (trivial, but detracts from Rolls Royce feel of R and forces workarounds)
# seen in rw0642 and linux version of 0.64.1

# Verbal attempt at generalising the behaviour illustrated by this file:

# If "par(mfrow)" is used to set more than 2 graphs vertically or 
# horizontally on the page, then, in the file generated by "dev.print()", 
# the default size of the graph points created by "points()" differs from 
# the size created by "plot()", although it does not differ on the 
# screen display.

a_1:10
b_c(2:10,NA)

opar_par(mfrow=c(1,3))	# set up page for 1x3 graphs, bug
#opar_par(mfrow=c(3,1))	# set up page for 3x1 graphs, bug
#opar_par(mfrow=c(2,1))	# set up page for 2x1 graphs, OK

plot(a,a)
points(a,b)

plot(a,b)
points(a,a)

plot(a,a)
points(a,b)

par(opar)

dev.print(file="printdev.ps")

# gv or print "printdev.ps"

----------------------------------------------------------------------------

Thanks for R

John Peters
CSIRO National Measurement Laboratory
PO Box 218                                Phone:    +61 2 9413 7503
Lindfield NSW 2070                        Fax:      +61 2 9413 7202
Australia                                 Internet: John.Peters@tip.CSIRO.AU
----------------------------------------------------------------------------

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