[R] problems with postscript device (PR#341)
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
25 Nov 1999 15:12:25 +0100
Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk> writes:
> chong@stat.purdue.edu writes:
>
> > I have encountered the same problem and reported about 5 months ago.
>
> Wasn't there in 0.65.1 ....
Here's a patch:
Index: src/main/devPS.c
===================================================================
RCS file: /home/rdevel/CVS-ARCHIVE/R/src/main/devPS.c,v
retrieving revision 1.9
diff -u -r1.9 devPS.c
--- devPS.c 1999/10/07 18:10:11 1.9
+++ devPS.c 1999/11/25 13:06:44
@@ -824,7 +824,7 @@
if(pointsize < 6.0) pointsize = 6.0;
if(pointsize > pd->maxpointsize) pointsize = pd->maxpointsize;
dd->dp.ps = pointsize;
- dd->dp.cra[0] = (6.0 / 12.0) * pointsize;
+ dd->dp.cra[0] = 0.9 * pointsize;
dd->dp.cra[1] = 1.2 * pointsize;
/* Character Addressing Offsets */
Index: src/main/graphics.c
===================================================================
RCS file: /home/rdevel/CVS-ARCHIVE/R/src/main/graphics.c,v
retrieving revision 1.57
diff -u -r1.57 graphics.c
--- graphics.c 1999/11/18 16:50:08 1.57
+++ graphics.c 1999/11/25 13:06:44
@@ -3555,7 +3555,7 @@
#ifdef OLDSYMSIZE
#define GSTR_0 GStrWidth("0", INCHES, dd)
#else
-#define GSTR_0 xDevtoInch(dd->dp.cra[0] * 0.66, dd) * dd->gp.cex
+#define GSTR_0 dd->dp.cra[0] * 0.66 * dd->gp.ipr[0] * dd->gp.cex
/* NOTE: This cex is already multiplied with cexbase */
#endif /* Draw one of the R special symbols. */
void GSymbol(double x, double y, int coords, int pch, DevDesc *dd)
--
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._