search for: cairo_pdf

Displaying 20 results from an estimated 90 matches for "cairo_pdf".

2017 Feb 20
2
[FORGED] Re: Replaying a recorded plot (mixed base and grid) from pdf() in cairo_pdf() crashes R
Hi This appears to be happening (at least) because cairo_pdf() delays initialising a Cairo surface until BM_NewPage(), rather than initiliasing a Cairo surface in BM_Open(), and replayPlot() triggers some activity (set clip region) on the device BEFORE a new page is started (so the pointer to the Cairo surface is null, so BOOM). Not sure yet whether to...
2017 Feb 20
3
Replaying a recorded plot (mixed base and grid) from pdf() in cairo_pdf() crashes R
Hi, I wonder if this is expected or I'm doing a wrong thing. pdf() dev.control('enable') library("grid") plot(1) grid.text("A") res = recordPlot() dev.off() cairo_pdf() replayPlot(res) dev.off() *** caught segfault *** address 0x4, cause 'memory not mapped' > sessionInfo() R version 3.3.2 (2016-10-31) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: macOS Sierra 10.12.3 locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_...
2011 Oct 22
3
Sweave, cairo_pdf, CJK, ghostscript
...an annotated map of China with R and some public GIS data: http://sourceforge.net/projects/outmodedbonsai/files/snpMatrix%20next/1.17.7.11/China_Choropleth_Maps.pdf/download It is done, and rather nice... there are a few issues: - the default pdf() device cannot do CJK with embedded fonts - and cairo_pdf() is not hooked up to Sweave yet. I have had a quick look, and it does not look too complicated, other than the fact that cairo_pdf() is mutually exclusive with pdf(); and the jpeg/png are new to 2.13 so it is probably just nobody has gotten round to it. (and cairo_pdf() also behaves differently wi...
2017 Feb 21
0
[FORGED] Re: Replaying a recorded plot (mixed base and grid) from pdf() in cairo_pdf() crashes R
Hi I decided to blame cairo_pdf(). There is a fix in r-devel (r72242) that works for the reported case, plus some basic sanity checks. I could not complete 'make check-devel' because it was failing on reg-tests-1d.R ... > stopifnot(length(fd) == 10, identical(fd, format(dct <- as.POSIXct(dlt)))) Error: identi...
2019 Feb 28
2
R cairo_pdf function does not respect plotting boundaries
Hello all, When producing a plot in R using the cairo_pdf device, the resultant plot does not respect the plotting boundaries. Lines and shaded regions will spill over the lower x-axis and the right-side y-axis (sides 1 and 4). I would like to know if it is possible to fix this behaviour when using 'cairo_pdf' in R? As an example, see the image a...
2019 Feb 28
2
R cairo_pdf function does not respect plotting boundaries
Hello all, When producing a plot in R using the cairo_pdf device, the resultant plot does not respect the plotting boundaries. Lines and shaded regions will spill over the lower x-axis and the right-side y-axis (sides 1 and 4). I would like to know if it is possible to fix this behaviour when using 'cairo_pdf' in R? As an example, see the image a...
2011 Oct 22
0
patch to add cairo support to Sweave (Re: Sweave, cairo_pdf, CJK, ghostscript)
...nd some public GIS data: > > http://sourceforge.net/projects/outmodedbonsai/files/snpMatrix%20next/1.17.7.11/China_Choropleth_Maps.pdf/download > > It is done, and rather nice... there are a few issues: > > - the default pdf() device cannot do CJK with embedded > fonts - and cairo_pdf() is not hooked up to Sweave yet. I > have had a quick look, and it does not look too complicated, > other than the fact that cairo_pdf() is mutually exclusive > with pdf(); and the jpeg/png are new to 2.13 so it is > probably just nobody has gotten round to it. (and > cairo_pdf() al...
2019 Mar 05
1
[R] [FORGED] R cairo_pdf function does not respect plotting boundaries
...he "+ 1" is just unnecessary. However, I have a slight nagging worry that we have been here before, so I would like to do some more testing before committing that change. Paul On 1/03/19 8:13 AM, Lee Steven Kelvin wrote: > Hello all, > > When producing a plot in R using the cairo_pdf device, the resultant plot does not respect the plotting boundaries. Lines and shaded regions will spill over the lower x-axis and the right-side y-axis (sides 1 and 4). I would like to know if it is possible to fix this behaviour when using 'cairo_pdf' in R? > > As an example, see t...
2019 Mar 05
0
R cairo_pdf function does not respect plotting boundaries
...would seem that the "+ 1" is just unnecessary. However, I have a slight nagging worry that we have been here before, so I would like to do some more testing before committing that change. Paul On 1/03/19 8:13 AM, Lee Steven Kelvin wrote: Hello all, When producing a plot in R using the cairo_pdf device, the resultant plot does not respect the plotting boundaries. Lines and shaded regions will spill over the lower x-axis and the right-side y-axis (sides 1 and 4). I would like to know if it is possible to fix this behaviour when using 'cairo_pdf' in R? As an example, see the image a...
2015 Jul 18
0
Use cairo fallback resolution greater than 72dpi in cairo_pdf and cairo_ps in grDevices
...graphics.org/manual/cairo-cairo-surface-t.html for the call you would need to add. However, I would suggest that you generate a bitmap directly and use that, as PostScript does not support semi-transparency. On 14/07/2015 12:03, Tom Wenseleers wrote: > Dear all, > In grDevices R functions cairo_pdf and cairo_ps it is mentioned that when transparency (alpha channels) are used in vector output, it will rasterize the PDF or postscript exported graph at a resolution of 72 dpi : https://stat.ethz.ch/R-manual/R-devel/library/grDevices/html/cairo.html > > You can see the problem if you try &gt...
2015 Jul 14
2
Use cairo fallback resolution greater than 72dpi in cairo_pdf and cairo_ps in grDevices
Dear all, In grDevices R functions cairo_pdf and cairo_ps it is mentioned that when transparency (alpha channels) are used in vector output, it will rasterize the PDF or postscript exported graph at a resolution of 72 dpi : https://stat.ethz.ch/R-manual/R-devel/library/grDevices/html/cairo.html You can see the problem if you try library(ggp...
2017 Oct 20
0
[FORGED] can't print ggplot with Chinese characters to pdf files
...Kaiti TC")) p2<-p2+theme(text = element_text(family = "Kaiti TC")) p<-array(list(NA), dim=2) p[[1]]<-p1 p[[2]]<-p2 p_series <- lapply(1:(length(p)), function(.x) p[.x][[1]]) m2 <- marrangeGrob(p_series, nrow=2, ncol=1) #ggsave("test_plot_chinese.pdf", m2) cairo_pdf("test_plot_chinese.pdf") print(m2) dev.off() 2017-10-12 19:55 GMT-07:00 Paul Murrell <paul at stat.auckland.ac.nz>: > Hi > > By the looks of it, you need to install Cairo graphics ... > > https://www.cairographics.org/download/ > > Paul > > On 13/10/1...
2023 Jan 16
1
Printing special characters
...ith > X11() > plot(1,1, pch = "") > text(1, 1, "EVENT ? 30 sec") > #dev.off() Yes, for me too. X11() *is* by default the "X11cairo" device and that works, the same as the "Cairo PDF" device that Jeff mentioned above. Indeed, cairo_pdf("utf8-ex.pdf") # works nicely whereas pdf("utf8-ex.pdf") does not {for me, with default font families etc}, but rather shows the "..." instead. *and* gives warnings during the plot conversion failure on 'EVENT ? 30 sec' in 'mbcsToSbcs': dot substi...
2017 Oct 13
4
[FORGED] can't print ggplot with Chinese characters to pdf files
Hi By the looks of it, you need to install Cairo graphics ... https://www.cairographics.org/download/ Paul On 13/10/17 15:48, John wrote: > Thanks, Paul. Following your solution, ?I got this error message: > > Warning message: > In cairo_pdf("test_plot_chinese.pdf") : failed to load cairo DLL > > Is there anything else I need to install? > > Thanks, > > John > > 2017-10-12 19:24 GMT-07:00 Paul Murrell <paul at stat.auckland.ac.nz > <mailto:paul at stat.auckland.ac.nz>>: > >...
2011 Jul 28
3
bug in dev.copy2pdf output?
Hi, Am using R 2.13.1 on Linux (Fedora). Is anybody else having problems with dev.copy2pdf xyplot output with the pch=1 (open circle) symbol? The symbols come out as "q" in the PDF. dev.copy2eps produces the correct results as does cairo_pdf. Other symbols produced with dev.copy2pdf seem ok. Thanks, Selwyn
2017 Jul 04
2
italic font on cairo devices in R 3.4
Hi all, I have the following problem: Since R 3.4.0, italic fonts rendered on Cairo devices appear pixelated. Here's a minimal example: cairo_pdf('test.pdf') plot(1:10, ylab=expression(italic(test))) dev.off() The same problem occurs with bolditalic, but not bold. I am using Debian Stretch. Several friends tried the same on their machines, another Debian machine has the same problem. On MacOSX the output was not pixelated, but it...
2017 Jul 04
2
italic font on cairo devices in R 3.4
Hi all, I have the following problem: Since R 3.4.0, italic fonts rendered on Cairo devices appear pixelated. Here's a minimal example: cairo_pdf('test.pdf') plot(1:10, ylab=expression(italic(test))) dev.off() The same problem occurs with bolditalic, but not bold. I am using Debian Stretch. Several friends tried the same on their machines, another Debian machine has the same problem. On MacOSX the output was not pixelated, but it...
2017 Oct 13
1
[FORGED] can't print ggplot with Chinese characters to pdf files
Hi Instead of ... ggsave("test_plot_chinese.pdf", m2) ... try ... cairo_pdf("test_plot_chinese.pdf") print(m2) dev.off() Paul On 13/10/17 02:12, John wrote: > I install the Chinese font "Kaiti TC" on my mac, but I can't print the > figures to pdf file by "marrangeGrob" command, which is in the package > "gridExtra". Er...
2017 Jul 07
2
italic font on cairo devices in R 3.4
...text appear anti-aliased? Frederick On Fri, Jul 07, 2017 at 10:30:46AM +0200, Ilia Kats wrote: > [cross-post from R-help] > > Hi all, > > I have the following problem: Since R 3.4.0, italic fonts rendered on Cairo > devices appear pixelated. Here's a minimal example: > cairo_pdf('test.pdf') > plot(1:10, ylab=expression(italic(test))) > dev.off() > > The same problem occurs with bolditalic, but not bold. I am using Debian > Stretch. Several friends tried the same on their machines, another Debian > machine has the same problem. On MacOSX the outpu...
2017 Jul 07
2
[Rd] italic font on cairo devices in R 3.4
...text appear anti-aliased? Frederick On Fri, Jul 07, 2017 at 10:30:46AM +0200, Ilia Kats wrote: > [cross-post from R-help] > > Hi all, > > I have the following problem: Since R 3.4.0, italic fonts rendered on Cairo > devices appear pixelated. Here's a minimal example: > cairo_pdf('test.pdf') > plot(1:10, ylab=expression(italic(test))) > dev.off() > > The same problem occurs with bolditalic, but not bold. I am using Debian > Stretch. Several friends tried the same on their machines, another Debian > machine has the same problem. On MacOSX the outpu...