search for: gsave

Displaying 14 results from an estimated 14 matches for "gsave".

Did you mean: save
2000 Aug 02
1
Re: [R] problem clipping R postscript plots within latex (PR#623)
...> > > tell it to also clip the area outside of the bounding box. > > ... > > > Ow. This stems from the use of "initclip" in the R-generated PS. One > > > shouldn't do that, one should bracket clipped graphics within > > > gsave/grestore instead. Sounds a bit tricky to get right. > > > > Thanks. To solve my current problem, I changed the definition of the > > `cl' operator in the postscript file to: > > > > /cl { gsave initclip newpath 3 index 3 index moveto 1 index...
2011 Aug 03
1
one way to solve bad looking density plots in postscript
...rectangles are rendered? I did notice that rectangles are plotted with slightly different sizes - 50, 51, 50, 51 and so on. Is that it? After a lot of experimentation, I found that a small change in the eps file can correct the output. If in the eps file produced above, you change the line /p2 { gsave bg fill grestore newpath } def with /p2 { bg gsave fill grestore stroke newpath } def and add 0.0001 setlinewidth two lines before the next p2 - i.e. before we start plotting the rectangles of the image: change: /bg { 1 0 0 setrgb } def 59.04 73.44 41.47 37.15 r p2 to: 0.0001 setlinewidth /bg { 1...
2007 Feb 28
1
On PostScript
...at am getting from printing to a file using an applewritter ppd is this: ---> snip %%Page: 1 1 %%PageBoundingBox: 0 0 612 792 %%BeginPageSetup % [{ %%BeginFeature: *PageSize Letter <</PageSize[612 792]/ImagingBBox null>>setpagedevice %%EndFeature } stopped cleartomark %%EndPageSetup gsave [0.24 0 0 -0.24 0 792] concat gsave 237 278 moveto 0 setgray (Courier-iso1252) cvn findfont 50 -50 matrix scale makefont setfont <585858582D746F2D6661782D6E756D626572> [30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0] xshow grestore grestore showpage %%PageTrailer %%Trailer %%BoundingBo...
2004 May 26
6
Saving Trellis Graphics in R 1.9.0. (PR#6915)
Full_Name: Zdenek Valenta Version: 1.9.0. OS: Windows XP Submission from: (NULL) (147.231.7.250) I could not copy/save (Trelis) graphics using R version 1.9.0. The graphics displayed normally, but copying/saving it only produced an empty file. Everything works o.k. with R rel. 1.8.1. Best regards, Zdenek Valenta
2000 Aug 04
2
pattern on bars?
Colors are real nice, but the publication I'm preparing these barplots for permits only black and white. The Splus plot options ``dbangle'' (or plain ``angle'') and ``density'' (as on p. 65 of MASS 1st ed.) don't seem to be available in R. Is there another way to do this? I'm running R 1.1.0 on Linux (intel). Thanks.
2000 Nov 16
1
postscript error
...ll %!PS-Adobe-3.0 %%DocumentFonts: Helvetica Helvetica-Bold Helvetica-Oblique %%+ Helvetica-BoldOblique Symbol %%DocumentMedia: a4 595 841 0 () %%Title: R Graphics Output %%Creator: R Software %%Pages: (atend) %%Orientation: Landscape %%BoundingBox: 18 18 577 824 %%EndComments %%BeginProlog /gs { gsave } def /gr { grestore } def /bp { gs 595.00 0 translate 90 rotate} def /ep { showpage gr } def /m { moveto } def /l { lineto } def /np { newpath } def /cp { closepath } def /f { fill } def /o { stroke } def /c { newpath 0 360 arc } def /r { 3 index 3 index moveto 1 index 4 -1 roll...
2000 Aug 02
1
Re: [R] problem clipping R postscript plots within latex (PR#625)
...ll it to also clip the area outside of the bounding box. > > > ... > > > > Ow. This stems from the use of "initclip" in the R-generated PS. One > > > > shouldn't do that, one should bracket clipped graphics within > > > > gsave/grestore instead. Sounds a bit tricky to get right. > > > > > > Thanks. To solve my current problem, I changed the definition of the > > > `cl' operator in the postscript file to: > > > > > > /cl { gsave initclip newpath 3 ind...
2002 Mar 25
2
Extreme value distributions (Long.)
...+ font Helvetica-Oblique %%+ font Helvetica-BoldOblique %%+ font Symbol %%DocumentMedia: a4 595 841 0 () () %%Title: R Graphics Output %%Creator: R Software %%Pages: (atend) %%Orientation: Portrait %%BoundingBox: 18 61 577 781 %%EndComments %%BeginProlog /bp { gs gs } def % begin .ps.prolog /gs { gsave } def /gr { grestore } def /ep { showpage gr gr } def /m { moveto } def /l { lineto } def /np { newpath } def /cp { closepath } def /f { fill } def /o { stroke } def /c { newpath 0 360 arc } def /r { 3 index 3 index moveto 1 index 4 -1 roll lineto exch 1 index lineto lineto c...
2001 Oct 26
1
postscript problem (PR#1147)
I reported this earlier, and have got reports that others have the same promlem on UNIX machines, so it is not only a windows problem S I file a bug report. The function (boot.stat) given at the end produces a postscript file, which cannot be included correctly in LaTeX. Specifically, the image in LaTeX (when translated by dvips to postscript) becomes very small, not using the bounding box, and
1999 Mar 03
4
xfig device
Hi, I am VERY interested in getting the xfig driver so that I can edit graphical output from R. Searching through the mail archives and reading documentation isn't helping. Is there or isn't there a working driver for this purpose. How can I get it? I tried looking at the development version of the tarballs, but I didn't find anything that looked promising in there. Also, does
2003 Oct 08
4
Unpredictable EPS->PDF rotation (PR#4460)
Dear r-bugs, When I create EPS files, they sometimes appear rotated in my LaTeX PDF document and sometimes they don't. Two examples: ## x1.eps is not rotated in LaTeX x <- seq(-1, 1, length=100) postscript("c:/x1.eps", height=3, width=4, horizontal=FALSE, onefile=FALSE, paper="special") plot(x, dnorm(x), type="l") dev.off() ## x2.eps is not
2003 May 21
2
overlapping a plot with an external image
It's possible to overlap an external image (jpg or pdf) with a plot generated with R? Specifying the image as the background of the plot might not be possible... any idea? thanks Meinhard Ploner
2000 Aug 01
1
problem clipping R postscript plots within latex
hi, I've noticed a small problem trying to include postscript plots generated by R into a latex document. Specifically, the latex package graphicsx allow you to specify the bounding box of the postscript file, so that you can just show _part_ of the postscript file if you tell it to also clip the area outside of the bounding box. I've previously used this LaTeX feature without problems
2008 Mar 29
1
A patch for extending pdf device to embed popup text and web links
...- cbind(c(0, -geo[8]), c(0, geo[7]), + c(geo[6], -geo[8]), c(geo[6], geo[7])) + xx <- m %*% x + c(geo[4], geo[5]) + pdf.text.on.box(min(xx[1,]), min(xx[2,]), max(xx[1,]), max(xx[2,]), text, + col, border, "DEVICE") + } + .ps.prolog <- c( "/gs { gsave } def", "/gr { grestore } def", diff -r -c R.org/src/library/grDevices/src/devPS.c R/src/library/grDevices/src/devPS.c *** R.org/src/library/grDevices/src/devPS.c 2008-03-29 23:36:12.000000000 +0900 --- R/src/library/grDevices/src/devPS.c 2008-03-30 01:44:20.000000000 +0900 ******...